<!DOCTYPE html>
<head>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
</head>
<body>
<div style="background-color:grey">
<div class="col-lg-12">
<h1>hello</h1>
</div>
</div>
</body>
</html>
嘿!!,首先發布在這裏,有人可以告訴我爲什麼這不起作用嗎?我已經簡化了我的代碼到最大限度。事情是,如果我讓我的瀏覽器窗口小於1200像素,它將工作。爲什麼不能用bootstrap改變背景?
這是一個好第一篇文章,最小的例子真的有幫助! – jochen