一、语法:

     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; 

 

相关文章:

  • 2021-08-27
  • 2021-08-27
  • 2021-05-03
  • 2021-06-29
  • 2021-07-04
猜你喜欢
  • 2021-06-25
  • 2021-10-27
  • 2022-12-23
  • 2021-08-27
  • 2022-02-02
  • 2022-01-24
  • 2022-01-01
相关资源
相似解决方案