我試圖清理這裏的一些對準問題的中心......中心內容,使他們在頁面
就可以了,底部箭不居中,以及可能是...
我有一個項目漂浮在箭頭左側的寬度是;然後項目漂浮在箭頭的右側。
的箭頭,結果是偏離中心......
這裏是小提琴
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