我想弄清楚如何给这个网站添加一个背景色:
http://kerryaltmantest.info
我希望颜色在身体表蓝色边框的外面。是否有一个简单的方法来添加一个背景到主站点,所以唯一的白色背景是身体?
发布于 2014-06-09 18:28:23
下面是代码,它修复了站点中几乎所有的主要布局问题-
body{
background:green;//color you want to define outside border
}
#wrapper {
background: none repeat scroll 0 0 #FFFFFF; //making background white inside box
margin: 0 auto;
overflow: hidden; //This will hide the content going out of your box
width: 950px;// I see your table width as 950, so changed this to 950
}发布于 2014-06-09 18:21:43
在样式表中,使用
body
{
background-color : red; //suppose red
}现在使用< div>放置所有其他信息或蓝色边框
发布于 2014-06-09 18:24:00
在stylesheet.css...中
body {
background-color: black;
/* OR */
background-color: #ffffff; /*Hex Value*/
/* OR */
background-color: rgb(0,0,0); /*RGB Value*/
/* OR */
background: url(http://tinyurl.com/oaq99oc) #fff no-repeat;
/* OR */
background-image: url(http://tinyurl.com/oaq99oc);
}https://stackoverflow.com/questions/24126348
复制相似问题