jquery - Bootstrap 中的容器不工作

标签 jquery html css twitter-bootstrap twitter-bootstrap-3

在 bootstrap 3.3.6 版本的 dist 文件夹中,我有一个 index.html 文件,其中包含以下代码,但这些代码不起作用。使用 bootstrap 文件夹,我们有 cs、js、font 文件夹和 index.html

<!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>Bootstrap 101 Template</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.3/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
  <!--script src="https://ajax.googleapis.com/ajax/libs/jquery/jquery.min.js"></script-->
  <script src="js/jquery/jquery.min.js"></script>
  <!-- Include all compiled plugins (below), or include individual files as needed -->
  <script src="js/bootstrap.min.js"></script>
</head>

<body>
  <!--h1 class="text-primary">Hello, world!</h1-->
  <div class="container">
    <div class="row">
      <div class="col-mid-4">Left Side </div>
      <div class="col-mid-4">Middle</div>
      <div class="col-mid-4">Left Side </div>
    </div>

  </div>


</body>

</html>

最佳答案

使用 col-md-* 而不是 mid

<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="js/jquery/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<div class="container">
  <div class="row">
     <div class="col-md-4">Left Side </div>
     <div class="col-md-4">Middle</div>
     <div class="col-md-4">Left Side </div>
   </div>
</div>

关于jquery - Bootstrap 中的容器不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51059877/

相关文章:

html - 如何移动按钮背景?

html - 将图像定位在底部与导航内联

css - 对具有相同父 CSS 类的多个表的所有 tr 和 td 应用相同的样式

html - 如何添加覆盖主导航标题的粘性标题?

jquery - 最大高度过渡

jquery - 为什么 animate() 不能在此 jQuery 代码中工作?

html - Bootstrap 3 - 填充网格列的链接按钮

html - div 背景没有出现在 live ie 和 firefox 中

jquery - jquery mobile 中面板显示的事件

javascript - 无法删除 DOM