Javascript 自动表格在代码中已在div标记中时显示出div(在inspect元素上)

Javascript 自动表格在代码中已在div标记中时显示出div(在inspect元素上),javascript,html,css,salesforce,force.com,Javascript,Html,Css,Salesforce,Force.com,我试图在VisualForce页面上的div中添加表,但当我保存页面并在浏览器中查看时,它不会显示在页面上,并且当尝试通过inspect元素进行调试时,它会显示我脱离了div。这是代码。请在此提供建议,谢谢 <div id="tmp" align="center"> <font face="Arial"> <apex:pageBlock > <apex:pag

我试图在VisualForce页面上的div中添加表,但当我保存页面并在浏览器中查看时,它不会显示在页面上,并且当尝试通过inspect元素进行调试时,它会显示我脱离了div。这是代码。请在此提供建议,谢谢

<div id="tmp" align="center">
                    <font face="Arial"> <apex:pageBlock >
                            <apex:pageMessage severity="error" strength="0" rendered="false" />
                            <apex:pageMessages />
                        </apex:pageBlock>

                        <table align="center">
                            <apex:outputPanel id="loginPanel" rendered="{!(AND(ISPICKVAL($User.UserType,'Guest'), $Site.LoginEnabled))}">
                                <div id="content_wrap">
                                    <div id="form_wrap">
                                            <fieldset>
                                                <label for="j_id0:j_id1:j_id5:Username">Username:</label><apex:inputText value="{!username}" id="Username" required="true" size="40"/> 
                                                <label for="j_id0:j_id1:j_id5:Password">Password:</label><apex:inputSecret value="{!password}" id="Password" required="true" size="40"/>
                                                <apex:commandButton action="{!login}" value="Login"/>
                                            </fieldset>
                                            <apex:outputLink value="{!$Page.TimesheetSiteForgotPassword_v1}"> {!$Label.site.forgot_your_password_q}</apex:outputLink>
                                    </div>
                                    <!--form_wrap -->
                                    <div id="text_wrap" style="width:100px;height:100%;">
                                    </div>
                                    <!-- text_wrap -->
                                    <div>
                                        <table cellpadding="10">
                                                    <tr>
                                                        <td align="center">
                                                            <table border="0" cellpadding="5" cellspacing="0" class="importantInfo">
                                                                <tr>
                                                                    <td>
                                                                        <img src="{!URLFOR($Resource.Timesheet_Wireframe_Template_Login,'kforce-50.jpg')}" alt="Kforce 50th Anniversary" />
                                                                    </td>
                                                                    <td>
                                                                        <table border="0" cellpadding="5" cellspacing="0" class="importantInfo">
                                                                            <tr>
                                                                                <td nowrap="nowrap" align="center">
                                                                                    <b>Kforce Time Entry Supports The Following:</b>
                                                                                    <br />
                                                                                    <br />
                                                                                    <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                                                        <tr>
                                                                                            <td align="center">
                                                                                                <img src="{!URLFOR($Resource.Timesheet_Wireframe_Template_Login, 'ico-firefox.gif')}" alt="FireFox 3.5" />FireFox 3.5
                                                                                            </td>
                                                                                            <td align="center">
                                                                                                <img src="{!URLFOR($Resource.Timesheet_Wireframe_Template_Login, 'ico-safari.gif')}" alt="Safari 4" />Safari 4
                                                                                            </td>
                                                                                            <td align="center">
                                                                                                <img src="{!URLFOR($Resource.Timesheet_Wireframe_Template_Login, 'ico-opera.gif')}" alt="Opera 10" />Opera 10
                                                                                            </td>
                                                                                            <td align="center">
                                                                                                <img src="{!URLFOR($Resource.Timesheet_Wireframe_Template_Login, 'ico-chrome.gif')}" alt="Chrome" />Chrome
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                            <tr>
                                                                                <td align="left">
                                                                                    <ul>
                                                                                        <li>
                                                                                            Use of the Time Entry and Time Entry Approval application in any browser not listed cannot be supported.
                                                                                        </li>
                                                                                        <li>
                                                                                            General Help is available by clicking the link at the top right corner.
                                                                                        </li>
                                                                                        <li>
                                                                                            If you cannot use web time entry for any reason, please contact the <b>Kforce Corporate Helpdesk at 1-866-807-5074</b>.
                                                                                        </li>
                                                                                        <li>
                                                                                            Please submit your timecard by close of business each Monday.
                                                                                        </li>
                                                                                        <li>
                                                                                            Training for&nbsp;<a id="ctl00_ContentPlaceHolder1_LoginPageConsultantHelp" href="http://www.kforce.com/timeentry/help/KPAY_Training_Updated/KPAY_Consultant_TimeEntryv1.htm" target="_blank">Consultants</a>&nbsp;and&nbsp;<a id="ctl00_ContentPlaceHolder1_LoginPageApproverHelp" href="www.google.com" target="_blank">Approvers</a>
                                                                                        </li>

                                                                                    </ul>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                              </div>
                                    </div>
                                <!-- content_wrap -->

                            </apex:outputPanel>
                            <apex:outputPanel id="errorPanel" rendered="{!NOT(AND(ISPICKVAL($User.UserType,'Guest'), $Site.LoginEnabled))}">
                                <tr>
                                    <td colspan="2">Your last session was not correctly ended.
                                        Please be sure you log out when you finish. Please completely
                                        close your browser and relaunch.</td>
                                </tr>
                            </apex:outputPanel>
                        </table>
                        <p />
                    </font>
                </div>

和


您上次的会话未正确结束。
请确保完成后注销。请完全
关闭浏览器并重新启动。


提前谢谢。

那么您想将文本换行到表单wrap div中吗??让我们看看你是如何添加这个的?是的,我想用div把整个桌子包起来,下面是“