【发布时间】:2014-12-23 19:37:52
【问题描述】:
我的图像不会居中对齐。我确定我做错了什么。我怎样才能使这个图像居中?我尝试过样式、自动边距、中心块、中心文本等。没有任何效果。
在所有小型移动设备上,320 像素的图像居中且全宽,但那些较大的移动设备(更宽的 iPhone、HTC、GalaxyS5 等) - 左对齐。
<header id="about2" class="about-mobile visible-xs hidden-sm" style="background-color:#20aab4; margin-top:0;height:661px;">
<div class="text-vertical-center" style="margin-top:0;">
<div class="visible-xs " style="z-index:1;">
<div id="num10" class="visible-xs">
<BR>
<BR>
<img src="images/homepage/INTROs_AboutUs_Mobile.png" class="img-responsive center-block" alt="" width="320" height="661" usemap="#MapAboutUs" />
<map name="MapAboutUs">
<area shape="rect" coords="66,237,147,270" href="our-story/index.html">
<area shape="rect" coords="153,239,257,267" href="our-navigators/index.html">
</map>
</div>
</div>
</div>
</header>
【问题讨论】:
标签: android html css twitter-bootstrap