background-position-x和background-position-y的兼容性问题


一、语法:

     background-position-x : length | left | center | right

     background-position-y : length | left | center | right

二、取值:  

     length :百分数 | 由浮点数字和单位标识符组成的长度值
     left :居左
     center:居中
     right :居右

三、兼容性:

     chrome和IE支持,写法:

           background-position-x:30px;-ms-background-position-x:30px;  

           background-position-y:30px;-ms-background-position-y:30px; 

     firefox不支持这两个属性,如果要兼容,需要写成:

           background-position:30px 30px; 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM