html - 使 bootstrap 2 无响应

标签 html css twitter-bootstrap

我遇到了 Bootstrap 版本 2 的问题,我无法真正修复网格。它在不同的屏幕尺寸上仍然很疯狂。我已经将所有 html 元素包装在一个容器中,如下所示:

<header>
<div class="container">
<div class="row">
    <div class="span5">
        <img src="http://www.placehold.it/90x90" >
        <h1 >
           Header
        </h1>
    </div>
    <div class="span4 offset3 text-right">
        <h3>City</h3>
        <p>+7 (343) 999999999</p>
    </div>
</div>
</div>
</header>

<section class="container" id="anchors">
<div class="row">
<div class="span3 text-center">
    <img src="http://www.placehold.it/150x150">
    <a class="anchor">Anchor</a>
</div>
<div class="span3 text-center">
    <img src="http://www.placehold.it/150x150">
    <a class="anchor">Anchor</a>
</div>
<div class="span3 text-center">
    <img src="http://www.placehold.it/150x150">
    <a class="anchor">Anchor</a>
</div>
<div class="span3 text-center">
    <img src="http://www.placehold.it/150x150">
    <a class="anchor">Anchor</a>
</div>
</div>
</section>

而且它们仍然没有修复。那么,如何让它不响应?将不胜感激。

最佳答案

解压缩您的 css 文件并删除“MEDIA QUERIES”,例如:

// Landscape phones and down 
@media (max-width: 480px) { ... }  

// Landscape phone to portrait tablet
@media (max-width: 767px) { ... }   

// Portrait tablet to landscape and desktop                  
@media (min-width: 768px) and (max-width: 979px) { ... }

// Large desktop
@media (min-width: 1200px) { ... }                       

关于html - 使 bootstrap 2 无响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17938792/

相关文章:

html - 为什么显示:table put a gap between absolutely positioned div tags and can it be fixed?

jquery - 如何在iframe中加载部分网页?

javascript - 淡入不同的文本行

css - Outlook 2010 渲染差异?

javascript - 模态弹出窗口内的 ElevateZoom 缩放窗口在弹出窗口打开之前显示在内容后面

jquery - 如果设置了边框,html 提交按钮在按下时不会明显下沉

javascript - 如何将全屏应用于图像

php - Float :left - Float:right Issue when div is too high. (有解决方法,但不知道如何实现到MYSQL中)

twitter-bootstrap - 复杂的 Bootstrap 网格,所有项目都包裹起来

twitter-bootstrap - Twitter bootstrap carousel - 使用鼠标滚动更改幻灯片