更新时间:2016年11月23日14时38分 来源:传智播客web前端开发培训学院 浏览次数:
01
02
03
04
05
06
07
08
09
10
11
12
|
::-webkit-input-placeholder { /* WebKit browsers */ color: #999; } :-moz-placeholder { /* Mozilla Firefox 4 to 18 */ color: #999; } ::-moz-placeholder { /* Mozilla Firefox 19+ */ color: #999; } :-ms-input-placeholder { /* Internet Explorer 10+ */ color: #999; } |
1
|
[mw_shl_code=applescript,true].clearfix:after{display:block;visibility:hidden;clear:both;height:0;content:'.';font-size:0} |
1
|
[mw_shl_code=applescript,true].haorooms{opacity: 0; -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";filter: alpha(opacity=0);} |
1
2
3
4
|
[mw_shl_code=applescript,true]display:bolck; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; |
1
2
3
4
5
6
7
|
[mw_shl_code=html,true]p { overflow : hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } |
1
2
3
|
[mw_shl_code=html,true]-webkit-box-shadow: 0 1px 1px rgba(0,0,0,.2); -moz-box-shadow: 0 1px 1px rgba(0,0,0,.2); box-shadow: 0 1px 1px rgba(0,0,0,.2); |
1
2
3
4
|
div{ word-wrap: break-word; word-break: normal; } |
1
2
3
|
div{ word-break:break-all; } |
1
2
3
|
div{ white-space:nowrap; } |
1
2
3
4
|
-webkit /*为Chrome/Safari*/ -moz /*为Firefox*/ -ms /*为IE*/ -o /*为Opera*/ |
1
2
3
4
5
|
-webkit-transform:rotate(-3deg); /*为Chrome/Safari*/ -moz-transform:rotate(-3deg); /*为Firefox*/ -ms-transform:rotate(-3deg); /*为IE*/ -o-transform:rotate(-3deg); /*为Opera*/ transform:rotate(-3deg); /*为nothing*/ |
1
2
3
|
-moz-border-radius: 12px; /* FF1-3.6 */ -webkit-border-radius: 12px; /* Saf3-4, iOS 1-3.2, Android <1.6 */ border-radius: 12px; /* Opera 10.5, IE9, Saf5, Chrome, FF4, iOS 4, Android 2.1+ */ |
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
|
< style > div.container { width:30em; border:1em solid; } div.box { box-sizing:border-box; -moz-box-sizing:border-box; /* Firefox */ -webkit-box-sizing:border-box; /* Safari */ width:50%; border:1em solid red; float:left; } </ style > </ head > < body > < div class = "container" > < div class = "box" >这个 div 占据左半部分。</ div > < div class = "box" >这个 div 占据右半部分。</ div > </ div > |
1
2
3
4
5
|
-webkit-filter: blur(3px); -moz-filter: blur(3px); -o-filter: blur(3px); -ms-filter: blur(3px); filter: blur(3px); |