表宽度未调整为分辨率

时间:2014-01-08 14:49:12

标签: html css

就像桌子预定义了最大宽度但不确定问题是什么......

正如您在此处所见,当分辨率为1024x768

时,表格位于out div之外

代码:

outter div:

<div id="resourceGenerator_details_tab_div" class="tabsContent" style="float: none; height: auto; width: auto; display: block;" tabclick="" tabtext="Details" parenttabbarid="rg_tabBar" buttonid="rg_tabBar_resourceGenerator_details_tab_div_tab">

在这个div中我有:

<table cellspacing="0" cellpadding="1" border="0" style="width: auto; height: auto;">

3 个答案:

答案 0 :(得分:0)

而不是auto,请使用100%

<table cellspacing="0" cellpadding="1" border="0" style="width: auto; height: auto;">

转到:

<table cellspacing="0" cellpadding="1" border="0" style="width: 100%; height: auto;">

并确保添加到表格container

width:100%;height:100%;

答案 1 :(得分:0)

在外部width:100%div设置table。这样可以正常工作。

答案 2 :(得分:0)

而不是在外部区域使用width:auto使用width:100%。我尝试了它,但它确实有效。

相关问题