我成功地在网页上显示文字,但在Firefox中,它根本不显示文字。如果我看到页面源,那里有文本。但为什么不显示?在Chrome和IE中,它运行正常。
编辑: 当我使用firebug时,看起来内容就在屏幕后面。我只是猜。你的专家怎么说呢?
<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 />
<asp:Label ID="lblName" runat="server" Font-Bold="True" Font-Size="10pt" ForeColor="#006699"
Font-Names="Verdana"></asp:Label> </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> </span> </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">
</td>
</tr>
</table>
</div>
<div class="reusableBlueBottom">
<span> </span> </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">
<asp:ImageButton ID="imgbtnEnterMyAccount" runat="server" ImageUrl="~/images/enter_my_account.gif"
OnClick="imgbtnEnterMyAccount_Click" Width="185px" /></td>
<td style="width: 100px; height: 37px">
</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">
</td>
</tr>
</table>
</div>
提前致谢!
答案 0 :(得分:0)
正如其他人所说,你应该发布完整的HTML来发现问题(而不是你所做的ASP.NET页面)
然而,似乎你的tr标签之一缺少里面的td标签:
<tr style="height:32px"> </tr>
这不是抱怨的HTML,我会检查这是否导致Firefox出现问题。 另请查看页面标题中的DTD。