我试图清理这里的一些对准问题的中心......中心内容,使他们在页面
就可以了,底部箭不居中,以及可能是...
我有一个项目漂浮在箭头左侧的宽度是;然后项目漂浮在箭头的右侧。
的箭头,结果是偏离中心......
这里是小提琴
http://jsfiddle.net/6jSFY/292/
我的代码
/*bottom toolbar*/
.bottom-toolbar {
height: 60px;
background: #292B2C;
position: fixed;
bottom: 0;
width: 100%;
color: #ffffff;
padding-left: 15px;
padding-right: 15px;
z-index: 2;
}
.toolbar-item {
display: inline-block;
line-height: 60px;
padding:0 20px 0 20px ;
transition: background 0.2s ease 0s;
}
.toolbar-item:hover {
cursor: pointer;
background: #747677;
bottom: 10px;
}
.toolbar-group {
display: inline-block;
margin-right: 30px;
border-right: 1px solid #393B3C;
}
<!-- footer toolbar -->
<div class="bottom-toolbar text-center">
<div class="pull-left">
<span class="toolbar-item">Slide 1/3</span>
</div>
<div class="toolbar-item">
<i class="fa fa-arrow-left"></i>
</div>
<div class="toolbar-item">
<i class="fa fa-arrow-right"></i>
</div>
<div class="pull-right">
<div class="toolbar-group">
<div class="toolbar-item">
<i class="fa fa-check text-success"></i>
</div>
<div class="toolbar-item">
<i class="fa fa-times text-danger"></i>
</div>
</div>
<div class="toolbar-item">
00:00
</div>
</div>
</div>
<!-- end footer toolbar -->
问:
有没有办法居中箭头,让他们都死了中心在页面上不管相邻项的宽度?
天哪那就是聪明! –
不那么糊涂,但tnx。另请注意''.dull-right'在'.center'块之前 – disstruct