所以有这个形象在我的代码,并与下面的代码是正确的水平居中,含量不居中正确
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? –