【发布时间】:2017-06-09 00:14:58
【问题描述】:
请问我如何获得一个名为 bgImage 的正确引导背景图像。目前,我的背景不适合调整窗口大小时的大小。
<html>
<head>
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<div id="BGImage">
<div class="container" id="tabcontainer">
<div class="row">
//All the content i.e text field, text box are inside
</div>
</div>
</div>
</body>
</html>
style.css
<body>
background: none;
</body>
#BGImage {
background: url(../images/1.jpg) no-repeat scroll 0 0 transparent;
background-repeat:no-repeat;
-webkit-background-size:cover;
-moz-background-size:cover;
-o-background-size:cover;
background-size:cover;
background-position:center;
height:850px;
}
【问题讨论】:
标签: html css twitter-bootstrap