【发布时间】:2017-11-09 16:38:19
【问题描述】:
我使用bootstrap的类border-*,但是看不到边框。 1.我错过了什么? 2.我在哪里改变边框的厚度? 3. 为什么下面代码的输出结果中,单元格之间有一个小白点? 4. 我使用了rounded-0类,它仍然存在,为什么?
感谢任何帮助。
div {
height: 50px;
}
<!-- Jquery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- BootStrap -->
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<!-------------------------------------------------------------------------->
<div class="container-fluid row">
<h1 class = 'page-header'>
Why the borders are not visible ?
</h1>
<h5>And why the radius box is still rounded if the class is rounded-0 ?</h5>
<div class='btn btn-primary rounded-0 col-xs-4'></div>
<div class='btn btn-primary rounded-0 col-xs-4 border-top-0'></div>
<div class='btn btn-primary rounded-0 col-xs-4 '></div>
<div class='btn btn-primary rounded-0 col-xs-4 border-left-0'></div>
<div class='btn btn-primary rounded-0 col-xs-4 '></div>
<div class='btn btn-primary rounded-0 col-xs-4 border-right-0'></div>
<div class='btn btn-primary rounded-0 col-xs-4'></div>
<div class='btn btn-primary rounded-0 col-xs-4 border-bottom-0'></div>
<div class='btn btn-primary rounded-0 col-xs-4'></div>
</div>
【问题讨论】:
-
没有“Bootstrap 3边框类”这样的东西。他们是在
v4中介绍的。 -
可以查看所有
v3变量here,
标签: twitter-bootstrap border rounded-corners