Css Bootstrap |我能';我的网站没有背景图片
我已经尝试了所有我能在以前的答案中找到的东西,但是没有成功。我可以更改背景*颜色*而不是背景*图像*。那么,为了成功地插入全屏背景,我必须在代码中添加什么?希望有人能帮助我 这是我的html:(我将粘贴整个文档,以便您可以看到所有内容)Css Bootstrap |我能';我的网站没有背景图片,css,twitter-bootstrap,background,background-image,Css,Twitter Bootstrap,Background,Background Image,我已经尝试了所有我能在以前的答案中找到的东西,但是没有成功。我可以更改背景*颜色*而不是背景*图像*。那么,为了成功地插入全屏背景,我必须在代码中添加什么?希望有人能帮助我 这是我的html:(我将粘贴整个文档,以便您可以看到所有内容) 为了获得一个全屏(响应性)背景图像,您需要在项目中使用这个css片段。在本例中,我设置了“body”标记的样式,但是这种技术可以用于网页中的任何元素 body { background: url(http://www.pulserealestateonli
为了获得一个全屏(响应性)背景图像,您需要在项目中使用这个css片段。在本例中,我设置了“body”标记的样式,但是这种技术可以用于网页中的任何元素
body { background: url(http://www.pulserealestateonline.com/todd.jpg)
no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;"
}
这里有一个关于
body {
padding-top: 90px;
min-width: 320px;
}
.navbar-static-bottom {
margin-bottom: -20px;
}
.nav > li > a {
color: #a5a5a5;
}
#sidebar > li > a {
padding: 6px;
}
#sidebar > li > a:hover, #sidebar > li > a:focus{
background-color: transparent;
border-left: 2px solid #0b9411;
color: #0b9411;
}
#sidebar .affix-top {
position: static;
margin-top:30px;
width:228px;
color: #0b9411;
}
#sidebar .affix {
position: fixed;
width:228px;
padding-left: 0px;
}
#sidebar li.active > a {
border: 0 #0b9411 solid;
border-left-width: 2px;
color: #0b9411;
font-weight: bold;
}
#leftCol {
max-width: 12%;
}
.list-group {
max-width: 14%;
}
.page-footer {
margin: -15px 2px 50px 0px;
color: #0b9411 ;
font-size: 11px;
text-align: right;
}
body { background: url(http://www.pulserealestateonline.com/todd.jpg)
no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;"
}