<分区>
当我将“col-xs-12”类添加到id为“me”的div中时,它不会停留在中心;然后我删除类,div 到中心,但是一半的背景会消失,如何解决?
有代码:
<div class="container container-fluid">
<div class="row text-center" style="margin-top: -50px;">
<!--There is the div what I want to put at center.-->
<div id="me" class="center-block clearfix col-xs-12" style="
height: auto;
width: 220px;
background-color: #5B0707;
padding: 10px;
color: white">
Text
</div>
</div>
</div>
第一个问题的拍摄:
第二个:
网址是:www.tengzeyuan.com