2
我有使用Bootstrap的問題。該行比Bootstrap中的容器大
的代碼如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Landing Page</title>
<!-- Bootstrap -->
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
<link href="bootstrap/css/custom.css" rel="stylesheet" media="screen">
<!-- Javascript -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<div class="row" id="main_header">
</div>
</div>
</body>
</html>
但結果是,行比容器大。
我離開你的照片來理解我的意思
http://i50.tinypic.com/2dvsah3.png
在custom.css只有高度和div的顏色。
我做了這個jsfiddle,它運作良好,或壞我的例子? http://jsfiddle.net/GJS7c/ – SoldierCorp