html - Bootstrap/网格系统/CSS 解决方法

标签 html css twitter-bootstrap grid box

有没有办法通过 Bootstrap 3 Grid 系统进行这种框/图像定位?如果没有,您打算如何使用纯 CSS 对此进行编码?

图片引用请点击链接: Box Image

有人如何帮助我?

最佳答案

这可以通过 Bootstrap Grid System 实现。我认为这段代码会对你有所帮助。我已经为整个屏幕完成了它,您可以将它用于屏幕的某些部分。

<div class="row">
    <div class="col-md-6">
       <p>Some text..</p>
      <img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">
    </div>

    <div class="col-md-3">
      <p>Some text..</p>
      <img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">

      <p>Some text..</p>
      <img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">
    </div>

    <div class="col-md-3">
       <p>Some text..</p>
      <img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">
    </div>
</div>



<div class="row">
    <div class="col-md-3">
      <p>Some text..</p>
      <img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">

      <p>Some text..</p>
      <img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">
    </div>


    <div class="col-md-6">

      <div class="col-md-6">
       <p>Some text..</p>
      <img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">
    </div>

     <div class="col-md-6">
       <p>Some text..</p>
      <img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">
    </div>

       <p>Some text..</p>
      <img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">
    </div>


    <div class="col-md-3">
       <p>Some text..</p>
      <img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">

      <p>Some text..</p>
      <img src="http://placehold.it/150x80?text=IMAGE" class="img-responsive" style="width:100%" alt="Image">
    </div>
</div>

参见 this对于您对 Grid System 的澄清,请参阅一些示例 Bootstrap Template .我认为这些会对您有所帮助。

关于html - Bootstrap/网格系统/CSS 解决方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38613642/

相关文章:

javascript - 如果输入中插入两个数字字符,则显示/隐藏 div

css - ASP.Net - 根据背后的逻辑更改按钮的 CssClass 属性

javascript - 如何在 Metro 风格应用中实现类似 UI 的 Bing Travel

html - 彼此相邻的 Bootstrap 按钮组

javascript - jQuery 'text' 不工作

html - 如何知道哪个类将在 Bootstrap 中应用

JavaScript 清除文本框 DOM 仅清除顶部框

html - 我无法使用 materialize css 在输入字段中输入任何文本

javascript - 如何使用 jquery 添加包含 AngularJS 表达式的 ajax 加载内容

html - CSS方法而不是显示:run-in; to position a block inline?