我想让按钮穿过中心的页面,当它在右边的房间用完时,它会去下一层并添加更多按钮。我有4个按钮,但它们会被卡住左侧picture of the buttons on the page使用HTML和CSS的中心按钮
这里是关于CSS/HTML端的代码。
#cyber-courses-bottom button
\t {
\t \t display:block; /* change this from inline-block */
\t \t height: 50px;
\t \t width: 250px;
margin:0 auto; /* this will center it */
\t \t float:left;
\t \t margin-right:20px;
\t \t margin-bottom: 100px;
\t \t position:relative;
font-style:normal;
font-weight:normal;
color:#fff;
border:none;
\t \t border-radius: 0;
text-decoration:none;
text-align:center;
cursor:pointer;
\t \t -webkit-transition: all 0.4s ease-in-out;
background-color:#820024;
}
.clearFloat {clear: both;}
.floatRight {float: right;}
#cyber-courses-bottom button:hover,
#cyber-courses-bottom button:focus
{
\t \t background: #fff;
\t \t color: #820024;
\t \t border: 1px solid;
}
<div id="cyber-courses-bottom">
<div class="container">
<div class="row">
<div class="col-md-6 col-sm-6 wow fadeInLeft" data-wow-delay="0.9s">
<button align="right" class="smoothScroll btn btn-default wow fadeInDown" data-wow-delay="2000" >Resources</button>
\t \t \t \t \t \t \t \t \t \t \t <button align="right" class="smoothScroll btn btn-default wow fadeInDown" data-wow-delay="2000" >Resources2</button>
\t \t \t \t \t \t \t \t \t \t \t <button align="right" class="smoothScroll btn btn-default wow fadeInDown" data-wow-delay="2000" >Resources3</button>
\t \t \t \t \t \t \t \t \t \t \t <button align="right" class="smoothScroll btn btn-default wow fadeInDown" data-wow-delay="2000" >Resources4</button>
</div>
</div>
</div>
</div>
</div>
它应该是什么样子?我的意思是你想要的输出。 –
@John Rey M. Baylen我希望它看起来像这样(http://i.imgur.com/xMbxObd.png) –