2011-01-05 23 views
0

我成功地在网页上显示文字,但在Firefox中,它根本不显示文字。如果我看到页面源代码,它在那里有文本。但为什么不显示?在Chrome和IE中,它工作正常。Firefox不会在网页上显示文字

编辑: 当我用萤火虫,它看起来像内容是在屏幕后面。我只是猜测。你的专家对此有何评论?

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"> 
<div> 
<table id="Table2" width="150%" border="0" cellspacing="0" cellpadding="0" 
    class="main_content"> 
    <tr valign="top"> 
     <td align="left" style="height: auto"> 
      <br /> 
      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
      &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; 
      <asp:Label ID="lblName" runat="server" Font-Bold="True" Font-Size="10pt" ForeColor="#006699" 
       Font-Names="Verdana"></asp:Label>&nbsp;</td> 
    </tr> 
    <tr style="height:32px"> </tr> 
    <tr valign="top"> 
     <td align="center"> 
      <div class="reusableBlueBox" style="width: 500px;height:auto;"> 
       <div class="reusableBlueTop"> 
        <span>&nbsp;</span>&nbsp;</div> 
       <div class="reusableBlueContent"> 
        <table id="Content" border="0" cellpadding="0" cellspacing="4" class="createAccountTable"> 
         <%-- <tr><td align="left" valign="top"><h2 align="center">WELCOME TO OUR SITE...!</h2></td></tr>--%> 

         <tr id="trwelcome" runat="server"> 
          <td> 
           <div style="text-align: center; margin: 0in 0in 0pt;"> 
            <span style="color: #00669f; font-size:large; font-family:Arial; font-weight:bold" > Welcome</span> <br> 
            <span style="color: #00669f; font-size:small; font-family:Arial" > Please look over this welcome page to 
            familiarize yourself with your account. </span> 
           </div> 
          </td> 
         </tr> 

         <tr id="trhelp" runat="server" visible = "false"> 
          <td> 
           <div style="text-align: center; margin: 0in 0in 0pt;"> 
            <span style="color: #00669f; font-size:large; font-family:Arial; font-weight:bold" > Help</span> <br> 
           </div> 
          </td> 
         </tr> 
         <tr style="height:10px"> 
         <td> </td> </tr> 

         <tr> 
          <td id="tdWelcomeContent" runat="server" valign="top" class="listStyleNone"> 
          </td> 
         </tr> 
         <tr id="trthankyou" runat="server"> 
         <td align="left"> 
         <strong><span style="color: rgb(0,102,153); font-size: medium">Thanks for joining.</span></strong> 
         </td> 
         </tr> 

        </table> 
         <table width="200"> 
       <tr> 
        <td style="width: 109px; height: auto"> 
         </td> 
        <td style="width: 100px; height: auto" align="center"> 
         <asp:ImageButton ID="imgbtnEnterMyAccount" runat="server" ImageUrl="~/images/enter_my_account.gif" 
          OnClick="imgbtnEnterMyAccount_Click" Width="185px" /></td> 
        <td style="width: 100px; height: auto"> 
         &nbsp;</td> 
       </tr> 
      </table> 
       </div> 
       <div class="reusableBlueBottom"> 
        <span>&nbsp;</span>&nbsp;</div> 
      </div> 
      <br /> 
      <%-- <table width="200"> 
       <tr> 
        <td style="width: 109px; height: 37px"> 
         <asp:ImageButton ID="btnhelp" runat="server" ImageUrl="~/images/help2.gif" OnClick="btnhelp_Click" Visible="False" /></td> 
        <td style="width: 100px; height: 37px" align="center"> 
         &nbsp;<asp:ImageButton ID="imgbtnEnterMyAccount" runat="server" ImageUrl="~/images/enter_my_account.gif" 
          OnClick="imgbtnEnterMyAccount_Click" Width="185px" /></td> 
        <td style="width: 100px; height: 37px"> 
         &nbsp;</td> 
       </tr> 
       <tr> 
        <td style="width: 109px; height: 47px"> 
        </td> 
        <td style="width: 100px; height: 47px"> 
        </td> 
        <td style="width: 100px; height: 47px"> 
        </td> 
       </tr> 
      </table>--%> 
     </td> 
    </tr> 
    <tr> 
     <td align="center"> 
     </td> 
    </tr> 
    <tr> 
     <td align="center"> 
      &nbsp;</td> 
    </tr> 
</table> 
</div> 

提前感谢!

+0

你可以发布HTML吗? – Chandu 2011-01-05 17:22:32

+0

我们需要链接到页面或页面源代码才能看到这个问题 - 你在问题中包含的内容不足以提供答案。 – Richard 2011-01-05 17:23:23

+0

你可以看看FF中的错误控制台,或者运行一些很好的老式警报来检查你的变量/元素值/ css/etc,但没有任何代码,因为他们上面说过,它可能是任何东西。 – 2011-01-05 17:30:06

回答

0

至于对方说你应该张贴的完整HTML发现问题(而不是你做的ASP.NET页面)

然而,似乎你的tr标签之一是缺少内部的TD标签:

<tr style="height:32px"> </tr> 

这不是抱怨HTML,我会检查这是否导致问题到Firefox。 也看看页面标题中的DTD。