html - 无法禁用 Bootstrap 的响应能力

标签 html css twitter-bootstrap

我只想问一下如何禁用 Bootstrap 的响应能力。我目前已按照教程中的说明进行操作,但无法使我的页面无响应。

我在代码中所做的是:

1. I removed the viewport in meta tag
2. Set a width in the class .container

当我调整窗口大小时,3 列变得响应式。

Here's my sample fiddle

这是我的代码:

<!DOCTYPE html>
<html lang="en">
<head>
    <title>Chuosenko</title>
    <link rel="stylesheet" type="text/css" href="./third_party/bootstrap/dist/css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="./third_party/bootstrap/dist/css/bootstrap-theme.css" />

    <link rel="stylesheet" type="text/css" href="./third_party/jqueryui/jquery-ui.css" />
    <link rel="stylesheet" type="text/css" href="./third_party/jqueryui/jquery-ui.theme.css" />

    <link rel="stylesheet" type="text/css" href="./css/style.css" />

    <script type="text/javascript" src="./third_party/jqueryui/external/jquery/jquery.js"></script>
    <script type="text/javascript" src="./third_party/jqueryui/jquery-ui.js"></script>
    <script type="text/javascript" src="./third_party/bootstrap/dist/js/bootstrap.js"></script>
    <script type="text/javascript" src="./js/packery.pkgd.js"></script>
</head>
<body>
    <div class="container">
        <div class="col-md-4">
            <h1>COL 1</h1>
        </div>
        <div class="col-md-4">
            <h1>COL 2</h1>
        </div>

        <div class="col-md-4">
            <h1>COL 3</h1>
        </div>
    </div>
</body>
</html>

这是我的CSS:

.container {
  width: 1280px;
  max-width: none !important;
}

你能帮我解决这个问题吗?

最佳答案

为网格使用 col-xs-* 类。就像教程中建议的那样。

关于html - 无法禁用 Bootstrap 的响应能力,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27351278/

相关文章:

javascript - Twitter 预输入 Bloodhound token 不起作用

javascript - Twitter Bootstrap 选项卡未激活

php - 表单中的图像提交按钮

html - Bootstrap : Modal with horizontal form and input addon does not layout properly

html - 在视频上叠加图像时如何保持图像背景透明度?

javascript - 将图像转换为内容背景

javascript - 我的右轴被切断了……我该如何纠正它?

css - 写在 Bootstrap 顶部面板行上?

html - 无法让 PIE 在 IE8 中为 border-radius 工作

html - Css 反弹动画不起作用,为什么?