Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/87.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css div问题中的IE8校准_Css_Html - Fatal编程技术网

Css div问题中的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;">

如何在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;">

            <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%是的,我给出了像素值,但是按钮从左向右扩展,而不是中心对齐