如何将按钮置于顶部的另一个按钮上
问题描述:
我喜欢将按钮置于顶部的按钮上。 如图所示,下面的按钮不居中。如何将按钮置于顶部的另一个按钮上
我尝试作为
.btn {
padding: 16px 22px;
color: #fff;
border-radius: 4px;
position: relative;
-webkit-transition: all .3s linear;
-moz-transition: all .3s linear;
-ms-transition: all .3s linear;
-o-transition: all .3s linear;
transition: all .3s linear;
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1), 0 2px 5px 0 rgba(0, 0, 0, 0.15);
border: none;
text-transform: uppercase;
}
.btn-center {
display: flex;
align-items: center;
justify-content: center;
}
.btn-common {
background: #3498db;
}
.btn-xs {
border-radius: 0px;
font-size: 12px;
line-height: 1.5;
padding: 1px 5px;
}
<div class="col-md-2">
<div class="pull-right">
<button class="btn btn-common btn-xs" ng-click="currecnySuggestion(room)"><i class="fa fa-save"></i> Book without payment</button>
<button class="btn btn-common btn-xs btn-center" ng-click="currecnySuggestion(room)"><i class="fa fa-save"></i> Book with payment</button>
</div>
</div>
你的意思是宽度不一样? –
是的不一样。保持当前的宽度。 – batuman
我真的不明白你想要做什么。喜欢这个? http://codepen.io/mcoker/pen/RVLejV –