就像桌子预定义了最大宽度但不确定问题是什么......
正如您在此处所见,当分辨率为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;">
答案 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%
。我尝试了它,但它确实有效。