Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/70.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
Html Div标记中存在错误_Html - Fatal编程技术网

Html Div标记中存在错误

Html Div标记中存在错误,html,Html,行中出现错误:错误是div标记中的位置无效,并且div标记未正确结束。但是我已经结束了div标签。。sombody能否告诉我为什么会出现此错误。根据您发布的代码,最外层的表和一些div标记未关闭。整个代码段应该是这样的 <table style =" border-collapse :collapse ; width :100px ; height: 100px ; align:centre:"> <tr style="height :100%">

行中出现错误:错误是div标记中的位置无效,并且div标记未正确结束。但是我已经结束了div标签。。sombody能否告诉我为什么会出现此错误。

根据您发布的代码,最外层的表和一些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>
                        </table>
                        </div>
                      </div>
                </caption>

<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>