1

我试图让一个非常简单的 Bootstrap 示例运行,但它不能正确呈现跨度。无论页面大小如何,我都没有看到跨度内容呈现为列。在调试下,我看到了 css 和相关的 jquery (v 1.9) 和 bootstrap (v 3.0) 脚本。

  <!DOCTYPE html> <html lang="en"> <head>
     <title></title>
     <meta name="viewport" content="width=device-width, initial-scale=1.0">

     <link href="Content/bootstrap/bootstrap.css" rel="stylesheet" />    </head> <body>
     <div class="container">
         <div class="row">
             <div class="span4">
                 <h2>Column one</h2>
                 <p>
                     Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum
 nibh, ut fermentum massa justo sit amet risus. Etiam porta sem
 malesuada magna mollis euismod. Donec sed odio dui.
                 </p>
             </div>
             <div class="span4">
                 <h2>Column one</h2>
                 <p>
                     Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum
 nibh, ut fermentum massa justo sit amet risus. Etiam porta sem
 malesuada magna mollis euismod. Donec sed odio dui.
                 </p>
             </div>
             <div class="span4">
                 <h2>Column one</h2>
                 <p>
                     Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum
 nibh, ut fermentum massa justo sit amet risus. Etiam porta sem
 malesuada magna mollis euismod. Donec sed odio dui.
                 </p>
             </div>
         </div>
     </div>

     <script src="Scripts/jquery-1.9.1.min.js"></script>
     <script src="Scripts/bootstrap.min.js"></script> </body> </html>
4

2 回答 2

1

你把脚本文件放在 Scripts 文件夹中了吗?查看您的导航器源代码并确保单击

<script src="Scripts/bootstrap.min.js"></script> 

该脚本是可访问的

于 2013-09-25T14:17:13.663 回答
0

V2 标记实际上是问题所在。删除 span 替换为 col4-md

于 2013-09-25T17:20:31.627 回答