如何使用 Twitter Bootstraps 网格系统在两列之间添加一条线 [英] How can I add a line between two columns using Twitter Bootstraps grid system

查看:19
本文介绍了如何使用 Twitter Bootstraps 网格系统在两列之间添加一条线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

两列布局,中间有一条线.

Two column layout with a line in the middle.

[                      ] | [                      ]
[                      ] | [                      ]
[                      ] | [                      ]
[     Left Column      ] | [    Right Column      ]
[                      ] | [                      ]
[                      ] | [                      ]
[                      ] | [                      ]
[                      ] | [                      ]

推荐答案

我想我的问题是正确的......这是下面的代码.下面的内联样式仅用于说明.您在 css 文件中应用您的样式.

I think I got your question right... this the below codes. The inline style below is just for illustration. You apply your styling in the css file.

<div class="container">
    <div class="row-fluid">
        <div class="span6" style="padding-right:20px; border-right: 1px solid #ccc;">
            <p>Some Contents Here...</p>
        </div>

        <div class="span6">
            <p>Some Contents Here...</p>
        </div>
    </div>
</div>

以上代码应输出这张图片.

这篇关于如何使用 Twitter Bootstraps 网格系统在两列之间添加一条线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆