【发布时间】:2015-09-04 21:07:34
【问题描述】:
这就是我现在所拥有的。我不能让它变成全宽
这是html。我已经尝试添加 .btn-block 类,但我得到的结果与我刚刚使用 width: 100%; 时相同。在 CSS 中。也许问题出在父元素上?
<article class="col-xs-12 col-md-4">
<div class="label label-success price"><span class="glyphicon glyphicon-tag"></span>$39</div>
<div class="price-title">
<h3>LOREM</h3>
<small>Lorem Ipsum</small>
</div>
<div class="price-content ">
<ul>
<li><h4>Item or Service # 1</h4></li>
<li><h4>Item or Service # 2</h4></li>
<li><h4>Item or Service # 3</h4></li>
<li><h4>Item or Service # 4</h4></li>
<li><h4>Item or Service # 5</h4></li>
<li><h4>Item or Service # 6</h4></li>
</ul>
<a href="#"><div class="btn btn-success">Sign Up</div></a>
</div>
</article>
这些是样式
#tables{
color: white;
text-align: center;
margin: 15px 20px;}
.price{
position: relative;
top: 20px;
font-size: 30px;}
.price-content{
background-color: #E8E9EA;
color: #69696A;
padding-right: 50px;
padding-top: 30px;
height: 350px;
margin-bottom: 80px;
width: 100%;}
.btn{
border-radius: 0px;
font-size: 20px;
font-weight: bold;
width: 100%;}
【问题讨论】:
-
尝试将
display: block;添加到您的父母a -
没有运气添加“显示:块;”给父母“a”。好像什么都没做
标签: css twitter-bootstrap button width