zoukankan      html  css  js  c++  java
  • background和background-position相关笔记

    background

    可在一个声明中设置background-color,background-image,background-repeat,background-attachment,background-position这些属性

    备注:

    1.兼容性良好。属性书写顺序貌似并无要求,缺一个或多个不会出错,但根据官方定义最好采用background-color,background-image,background-repeat,background-attachment,background-position的顺序

    2.属性间加上空格,以免在IE上出错

    background-position

    备注:

    1.background-position-x和background-position-y在firefox上不被支持,在IE,chrome上支持。

    为兼容firefox需要将此属性改写成 background-position:x y;

    在使用jquery设置时,需要写成$(...).css("background-position","3px; 3px");

  • 相关阅读:
    POJ
    POJ
    操作系统
    POJ
    POJ
    codeforces Educational Round 89
    codeforces Round 647(div. 2)
    codeforces Educational Round 88
    后缀自动机简单总结
    dsu on tree 简单总结
  • 原文地址:https://www.cnblogs.com/yanze/p/5974588.html
Copyright © 2011-2022 走看看