我把这段代码建立在bootstrap和字体上,我想把时钟往左移一点,所以它在中间居中。哪个是最好的解决方案,这样它就可以在所有设备上响应?
HTML
<div class="clock col-md-12 col-sm-12">
<i class="fa fa-clock-o fa-spin fa-4x fa-clock-spin x1"></i>
</div>
CSS
.clock {
text-align:center;
position:relative;
line-height:100px;
margin-bottom:5px;
margin-right: 300px;
}
.x1 {
font-size: 3vw !important;
position: fixed;
z-index: 0;
}
https://stackoverflow.com/questions/47620020
复制相似问题