Nas*_*jim 6 html twitter-bootstrap
我们应该将 Bootstrapcontainer类包含在 HTML 语义类内部还是外部<article>?
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>html</title>
<link rel="stylesheet" href="css/style.css">
<link rel="author" href="humans.txt">
</head>
<body>
<div class="container">
<article>
...
</article>
</div>
<script src="js/main.js"></script>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
或者,这是推荐的吗?
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>html</title>
<link rel="stylesheet" href="css/style.css">
<link rel="author" href="humans.txt">
</head>
<body>
<article>
<div class="container">
...
</div>
</article>
<script src="js/main.js"></script>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
Bootstrap 需要一个包含元素来包装站点内容并容纳我们的网格系统
考虑到这一点 - 您应该将容器放在外面。从那时起,您可以使用网格来容纳文章。