background:#FFFFFF none repeat scroll 0 0;后面的属性位置固定么,可以变么?

解决方案 »

  1.   

    定义和用法background 简写属性在一个声明中设置所有的背景属性。可以按顺序设置如下属性:    * background-color
        * background-image
        * background-repeat
        * background-attachment
        * background-position如果不设置其中的某个值,也不会出问题,比如 background:#ff0000 url('smiley.gif'); 也是允许的。通常建议使用这个属性,而不是分别使用单个属性,因为这个属性在较老的浏览器中能够得到更好的支持,而且需要键入的字母也更少。
      

  2.   

    你测试不就行了<html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
        <title>无标题页</title>
    </head>
    <body>
    <div style="background:#FFFF00 url('http://images.google.cn/intl/zh-CN_cn/images/cn_icp.gif') repeat scroll 0 0;">sdfsdf</div>
    <div style="background:#FFFF00  repeat url('http://images.google.cn/intl/zh-CN_cn/images/cn_icp.gif') scroll 0 0;">sdfsdf</div>
    </body>
    </html>
      

  3.   

    <div style="background:#FFFF00 url('http://images.google.cn/intl/zh-CN_cn/images/cn_icp.gif') repeat-y scroll 0 0;height:100px">sdfsdf</div>
    <div style="background:repeat-y scroll 0 0 #FFFF00 url('http://images.google.cn/intl/zh-CN_cn/images/cn_icp.gif');height:100px">sdfsdf</div>这两个一样的