Css div问题中的IE8校准
如何在IE8中对齐div中间的按钮。在IE7中工作正常,但在IE8中不工作Css div问题中的IE8校准,css,html,Css,Html,如何在IE8中对齐div中间的按钮。在IE7中工作正常,但在IE8中不工作 <div id="dPopupFooter" style="background-color: #d9d9d9; position: absolute; z-index: 5; bottom: 0px; width: 100%; height: 30px; border-top: solid 1px #acacac; text-align: center; padding-top: 3px;">
<div id="dPopupFooter" style="background-color: #d9d9d9; position: absolute; z-index: 5;
bottom: 0px; width: 100%; height: 30px; border-top: solid 1px #acacac; text-align: center; padding-top: 3px;">
<table><tr><td><xrx:CustomButton id="btnClose" runat="server" OnClientClick="ClosePopup();" /></td></tr></table>
</div>
样式块或样式表中的CSS:
#dPopupFooter table tr td {
text-align: center;
}
是的,它很管用,你就是看不见。问题是您的表没有100%的宽度:
#dPopupFooter table {
width:100%
}
您好,我已经给出了上述css,但是按钮宽度扩展了整个div部分。将其设置为像素值而不是100%是的,我给出了像素值,但是按钮从左向右扩展,而不是中心对齐