我需要为我的网站背景设置颜色和图案,但我不知道如何。 有人能帮我吗?? 提前谢谢
答案 0 :(得分: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;
}
在这两种情况下,都有许多选项和组合。