<table style =" border-collapse :collapse ; width :100px ; height: 100px ; align:centre:">
<tr style="height :100%">
<td dir="ltr" style="width:100px; vertical-align :top">
<div class="portletContainer" >
<div style="width:464px;margin-top:-1px; margin-left:7px;">
<table id="pendingActivity" style= "border-collapse ;collapse ; border-right:1px solid #ddd; border-left:1px solid #ddd; border-bottom:1px solid #ddd">
<caption class="color4" style = "height:30;width:100%"><span></span>
<div class="clearFix">
<div id="containerPaging">
<table style ="border-collapse:collapse;">
<tbody>
<tr><td class="btnViewAllResults" style="height:34px;">
<a href="javascript:ns_Z7_B8MG3OTV00OV80IFR4GPBO10G7_viewAll('true','routeToReportsPendingActivity')" class="button btnViewAllC2">
<span>View All</span>
<img src="./btn-viewall-c2.gif" title="View All" alt="View All"/>
</a>
</td></tr>
</table>
</div>
</div>
</caption>
我收到错误:错误是div标签中的无效位置,div标签未正确结束。但我已经结束了div标签..可以告诉我为什么会出现这个错误。
答案 0 :(得分:0)
根据您发布的代码,最外面的表和一些div标签未关闭。整个代码段应如下所示。
<table style =" border-collapse :collapse ; width :100px ; height: 100px ; align:centre:">
<tr style="height :100%">
<td dir="ltr" style="width:100px; vertical-align :top">
<div class="portletContainer" >
<div style="width:464px;margin-top:-1px; margin-left:7px;">
<table id="pendingActivity" style= "border-collapse ;collapse ; border-right:1px solid #ddd; border-left:1px solid #ddd; border-bottom:1px solid #ddd">
<caption class="color4" style = "height:30;width:100%"><span></span>
<div class="clearFix">
<div id="containerPaging">
<table style ="border-collapse:collapse;">
<tbody>
<tr><td class="btnViewAllResults" style="height:34px;">
<a href="javascript:ns_Z7_B8MG3OTV00OV80IFR4GPBO10G7_viewAll('true','routeToReportsPendingActivity')" class="button btnViewAllC2">
<span>View All</span>
<img src="./btn-viewall-c2.gif" title="View All" alt="View All"/>
</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</caption>
</table>
</div>
</div>
</td>
</tr>
</table>