所以有這個形象在我的代碼,並與下面的代碼是正確的水平居中,含量不居中正確
img#headerImage{
width: 600px;
margin-left:auto !important;
margin-right:auto !important;
}
,但是當我添加margin-left:-300px;
圖像進行適當調整,但略微向左偏移和不再精確地居中。
任何想法?
而且,這裏的一些的HTML:
<tr>
<td class="headerContent" id="logoContainer">
<img src="url" style="max-width:600px;"
id="headerImage" mc:label="header_image" mc:edit="header_image"
mc:allowdesigner="" mc:allowtext="" />
</td>
</tr>
您需要發佈您的HTML以及 –
@Juangweb會做! – Drew
你可以發佈你的整個HTML和CSS? –