我不知道我错在哪里,但网格系统根本不工作。我正在使用Firefox。 require_once还有问题吗? 这里是index.php文件:Bootstrap网格布局不起作用?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Study Surge</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<?php require_once('navbar.php');?>
<?php require_once('home.html'); ?>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
</body>
</html>
这里是home.html的:
<div class="well">
<div class="container">
<div class="row">
<div class="well engineering">
<div class="col-md-3">
<img src="image/engiico.gif">
<h1>Engineering</h1>
</div>
</div>
<div class="well engineering">
<div class="col-md-3">
<img src="image/engiico.gif">
<h1>Engineering</h1>
</div>
</div>
</div>
</div>
</div>
总的结果给出:
+ for仅列可以是行的直接子节点。 – khan 2015-04-03 22:01:23