博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
css3
阅读量:7219 次
发布时间:2019-06-29

本文共 2739 字,大约阅读时间需要 9 分钟。

CSS: vertical-align 

baseline : 基线   sub : 下标  super : 上标

 

CSS3 Borders

Property Description CSS
A shorthand property for setting all the border-image-* properties 3
A shorthand property for setting all the four border-*-radius properties 3
Attaches one or more drop-shadows to the box 3

IE9支持border-radius, box-shadow.

Firefox, Chrome, and Safari支持所有的新border属性

-webkit-border-image:url(border.png) 30 30 round; /* Safari 5 and older */-o-border-image:url(border.png) 30 30 round; /* Opera */

CSS3 Backgrounds

background-size:Internet Explorer 9+, Firefox, Chrome, Safari, and Opera设置背景图片的大小

background-origin: border-box,padding-box,content-box

CSS3 Gradients

  • Linear Gradients (goes down/up/left/right/diagonally)
  • Radial Gradients (defined by their center)

Internet Explorer 10+, Firefox 16+, Chrome 26+, and Opera 12.1+ support the four gradient functions.

Safari 5.1+ requires the prefix -webkit-.

Chrome 10 to 25 require the prefix -webkit-.

Opera 11.1 to 12.0 require the prefix -o-.

Firefox 3.6 to 15 require the prefix -moz-.

Internet Explorer 9 and earlier versions do not support gradients.

CSS3 Text Effects

  • text-shadow
  • word-wrap:一个单词过长允许截断到下一行显示,p {word-wrap:break-word;}

Internet Explorer 10, Firefox, Chrome, Safari, and Opera support the text-shadow property.

All major browsers support the word-wrap property.

CSS3 Fonts

 

CSS3 2D Transforms

  • translate()
  • rotate()
  • scale()
  • skew()
  • matrix()

CSS3 3D Transforms

  • rotateX()
  • rotateY()

CSS3 Transitions

CSS3 transitions are effects that let an element gradually change from one style to another.

To do this, you must specify two things:

  • Specify the CSS property you want to add an effect to
  • Specify the duration of the effect.
    div{transition: width 2s;-webkit-transition: width 2s; /* Safari */}div:hover{width:300px;}

     

CSS3 Animations

The @keyframes rule is where the animation is created. Specify a CSS style inside the @keyframes rule and the animation will gradually change from the current style to the new style.

div{

animation: myfirst 5s;-webkit-animation: myfirst 5s; /* Safari and Chrome */}

@keyframes myfirst{from {background:red;}to {background:yellow;}}

@-webkit-keyframes myfirst /* Safari and Chrome */{from {background:red;}to {background:yellow;}}

CSS3 Multiple Columns

  • column-count
  • column-gap
  • column-rule
    .newspaper{-moz-column-count:3; /* Firefox */-webkit-column-count:3; /* Safari and Chrome */column-count:3;-moz-column-gap:40px; /* Firefox */-webkit-column-gap:40px; /* Safari and Chrome */column-gap:40px;-moz-column-rule:4px outset #ff00ff; /* Firefox */-webkit-column-rule:4px outset #ff00ff; /* Safari and Chrome */column-rule:4px outset #ff00ff;}

     

CSS3 User Interface

  • resize
  • box-sizing
  • outline-offset

转载于:https://www.cnblogs.com/lindsayzhao103011/p/3410460.html

你可能感兴趣的文章
Eclipse优化
查看>>
Log4j tutorial with Tomcat examples
查看>>
Kong 网关
查看>>
三层结构视频中的DBHelper.cs
查看>>
[转载] 信息系统项目管理师视频教程——18 项目沟通管理
查看>>
在Windows下建立QT开发环境
查看>>
Jedis、JedisPool、ShardedJedis和ShardedJedisPool,java对redis的基本操作
查看>>
[转载] 致命伴侣
查看>>
HTML5 localStorage本地存储实际应用举例
查看>>
Scala访问修饰符
查看>>
实习感悟
查看>>
产品经理网站小结
查看>>
Bootstrap 附加导航插件
查看>>
如何设置启动SMTP、POP3以及IMAP4的SSL服务端口?
查看>>
自制函数strcpy
查看>>
gSoap开发(三)——WSDL简介
查看>>
软件RAID5项目实战!!!
查看>>
Java基础学习总结(21)——数组
查看>>
js格式化日期
查看>>
定时与延时任务
查看>>