我目前正在网站开发中尝试 Bootstrap,但似乎应该以内容为中心的容器类不起作用。我似乎无法找到为什么它不起作用的问题。我尝试了不同的文本编辑器并再次下载了引导程序,但没有任何反应。我使用的文本编辑器是 Sublime text 2。
谢谢你的帮助!:)
<!DOCTYPE html>
<html lang="en">
<head>
<title>Sample One</title>
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link href="style.css" rel="stylesheet" />
</head>
<body class="container">
<header class="row">
<hgroup class="span8">
<h1><a href="img/logo.png" title="Visit website"></a></h1>
<h2>Sample website design</h2>
</hgroup>
<nav class="span4">
<ul>
<li><a href="" title="About">About Us</a></li>
<li><a href="" title="Work">Our Work</a></li>
<li><a href="" title="Contact">Contact Us</a></li>
</ul>
</nav>
</header>
<section role="main">
<h1>About</h1>
<ul>
<li><a href="" title="Facebook">Facebook</a></li>
<li><a href="" title="Twitter">Twitter</a></li>
</ul>
<img alt="bg" src="">
<article>
<h1>Title of the article</h1>
<p>Sony has revealed lifetime sales of the PS3 has passed another milestone, and announced 300 new games are coming this Christmas.</p>
</article>
<section>
<h1>Portfolio</h1>
<ul>
<li>
<img src="">
<h2>Brand name</h2>
<p>sdaid dainsd iansd aisndla dansld</p>
</li>
<li>
<img src="">
<h2>Brand name</h2>
<p>sdaid dainsd iansd aisndla dansld</p>
</li>
<li>
<img src="">
<h2>Brand name</h2>
<p>sdaid dainsd iansd aisndla dansld</p>
</li>
</ul>
</section>
<article>
<h1>Contact</h1>
<p>Sony has revealed lifetime sales of the PS3 has passed another milestone, and announced 300 new games are coming this Christmas.</p>
</article>
</section>
<footer class="row">
<small class="span8">© 2013 All Right Reserved. Designed by Renz</small>
</footer>
</body>
</html>