【发布时间】:2015-07-23 20:08:06
【问题描述】:
下面的代码我需要水平滚动条。
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<link href="bootstrap.min.css" rel="stylesheet" />
</head>
<body>
<h1 class="page-header">Horizontal Scroll in bootstrap</h1>
<div class="container-fluid" style="overflow-x:scroll;">
<div class="col-sm-3">
<h3>Tree 1</h3>
</div>
<div class="col-sm-3">
<h3>Tree 2</h3>
</div>
<div class="col-sm-3">
<h3>Tree 3</h3>
</div>
<div class="col-sm-3">
<h3>Tree 4</h3>
</div>
<div class="col-sm-3">
<h3>Tree 5</h3>
</div>
</div>
</body>
</html>
如果执行上述行,则输出显示为图像。但我需要树 4 之后的树 5。不在树 1 下方。如果我增加树 6,它显示为树 5 之后。即,我需要水平滚动条。请帮帮我。
【问题讨论】:
标签: html twitter-bootstrap css angular-ui-bootstrap