0

这是我第一次尝试 twitter bootstrap 和 css 网格。

.hero-unit我使用基本营销网站作为我的示例 html 标记,并在类的顶部添加了另一个标题/徽标框,div.container因为我希望能够在所有尺寸上使用 100% 的页面宽度。

这是我的标题标志标记。

<header id="logo" class="logo-box">
  <div class="logo-container">
    <h1>Logo</h1>
    <p>Lorem ipsum</p>
  </div>
</header>

如何从黑框的顶部、左侧、右侧删除边距?顺便说一下,我使用 bootstrap-responsive.css。我应该为新标记制定新规则,还是有一个跨度或行类,我可以只包含来自 bootstrap.css 的跨度/行的徽标标记和样式。

图片链接将显示徽标框和我要删除的边距。

图片

提前致谢。

4

1 回答 1

0

为什么不使用背景中的图像?就像在这里使用过的一样:http: //twitter.github.io/bootstrap/用于jumbotron该类。

background: linear-gradient(45deg, #020031 0%,#6d3353 100%);您当然可以在这里使用您的图像。不过,我会在这里发布更多我的代码。使用 chrome devtools 从 bootstrap 的主页了解更多信息。

于 2013-07-03T16:16:44.373 回答