2012-05-21 158 views

回答

1

如有疑问,请阅读手册:http://www.w3.org/TR/css3-background/

#myElement{ 
    /* composite statement for background */ 
    background: #ff0000 url(some url) repeat-x top left; 
} 

#myElement{ 
    /* individual statements */ 
    background: white url("pendant.png"); 
    background-repeat: repeat-y; 
    background-position: center; 
} 

在这两种情况下,许多选择和组合使用。