background : #fff url(../image.png) no-repeat center center;
background-size:10px 10px;
这个能缩写成一条不?
background-size:10px 10px;
这个能缩写成一条不?
|
1
不能
|
|
2
background: #fff url("/static/img/top_light.png") center center / 10px 10px no-repeat;
|
|
3
background: url("../image.png") no-repeat scroll center center / 10px 10px #fff;
|
|
4
测试了一下。用'/'分割 background-postion 和 background-size的方法可行。
background : #fff url(../image.png) no-repeat center center / 10px 10px; 感谢大家,结贴。 |
|
jsonlineSep 10, 2014 via Android
5
这缩写太复杂
|
|
kisshereSep 10, 2014
7
我现在看到css3就反感
|
|
8
追加一个:
这些缩写在小米2,三星,4s等手机失效。 |
|
9
所以,要兼容这些移动设备的还是分开写吧。
|