html - Twitter bootstrap margin-left -20px 问题

标签 html css twitter-bootstrap

我在我的网页上使用 Twitter bootstrap 时遇到问题 http://scrapp.site90.com/ . header 包裹在容器中,周围有 .row,但似乎因为 margin-left: -20px 此行无法与其他内容对齐。有可能修复它吗?我尝试更改 margin-left 的值,但随后布局变得一团糟。

最佳答案

您可以在 H1 上使用 pull-left 而不是使用 span*..

<div class="row">
        <h1 class="pull-left">Take a look at our work to see what we mean</h1>
        <div>
        <ul class="social inline pull-right">
            <li>..</li>
        </ul>
        </div>
</div>

关于html - Twitter bootstrap margin-left -20px 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17062531/

相关文章:

javascript - 如何通过图标值隐藏图像

css - 有什么方法可以仅使用变换使一段文本在中间凸起吗?

html - 为什么第二个标题 "Chemicals"卡在这种无序列表格式的右边?

css - 如何使用javascript操作列表位置

javascript - 如何将 HTML/JS 导入到 Drupal 中?

javascript - 如何在 javascript(无 jquery)中查询数据属性值?

javascript - 如何使用 JQuery 显示自定义导航选项卡的内容?

css - 使用行的基本 Bootstrap 布局

html - 在水平滚动中使用滚轮

html - 在居中、固定位置的 div/overlay-box 中居中和定位元素