css3

CSS: vertical-align 

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

 

CSS3 Borders

PropertyDescriptionCSS
border-imageA shorthand property for setting all the border-image-* properties3
border-radiusA shorthand property for setting all the four border-*-radius properties3
box-shadowAttaches one or more drop-shadows to the box3

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值