html - Bootstrap 中的 HR 标签问题

标签 html css twitter-bootstrap

我正在做的是使用 hr 作为单独的表格单元格来拆分内容。

它应该是这样的(没有 hr 单元格), JSFiddle Correct (仅以一节为例)

但是,当我添加我的 hr 分隔单元时,它破坏了一切。 <强> JSFiddle Incorrect

所以大局是这样的..

<table>

<tr>
   //th's with content
</tr>

<tr><th class="col-xs-12"><hr class="square" /></th></tr>

<tr>
   //th's with content
</tr>

<tr><th class="col-xs-12"><hr class="square" /></th></tr>

</table>

只是需要一些帮助来正确设置 hr 单元格的样式/CSS。

最佳答案

这是你想要的吗? http://jsfiddle.net/4Akrp/5/

我刚刚添加了 colspan="3"

<table>

<tr>
   //th's with content
</tr>

<tr><th class="col-xs-12" colspan="3"><hr class="square" /></th></tr>

<tr>
   //th's with content
</tr>

<tr><th class="col-xs-12" colspan="3"><hr class="square" /></th></tr>

</table>

关于html - Bootstrap 中的 HR 标签问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25122422/

相关文章:

css - 什么 CSS 技术用于丰富的列/行嵌套内容框?

twitter-bootstrap - 保持多个折叠打开(使用按钮切换)– Bootstrap 3

html - Bootstrap 形式的行之间的空间不正确

javascript - 通过单独的 JavaScript 事件监听器更改 $scope Angular 变量

javascript - 如果隐藏表单包含 id 为 ='style' 的输入,则在 javascript 中设置显示 ='block' 后它将不可见

javascript - Angular : Using a sprite sheet with ng-repeat

jquery - 防止元素被制表

html - Bootstrap 网格环绕少于 12 列

html - 显示扁平化列表项以及适合 div 的更多项的计数

html - 选中单选按钮标签的 CSS