我試圖按照Bootstrap教程,但我創建的第一個div應該跨越我的瀏覽器/設備的整個寬度,似乎被限制在〜1000像素。任何想法,爲什麼這是?爲什麼不使用我的瀏覽器的整個寬度引導設備寬度?
這裏是我的代碼:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Testing the Bootstrap 3.0 Grid System</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<style>
.col-xs-12 {
height: 100px;
background-color: blue;
color:white;
text-align: center;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-xs-12">.col-xs-12</div>
</div>
</div>
</body>
</html>
預先感謝任何幫助。
使用'.container-fluid'而不是'.container'。 – davidpauljunior