IE 复制服务器端中断

发布于 2024-09-30 14:11:25 字数 739 浏览 0 评论 0原文

我有两次休息的问题 < Br>>出现在 IE 中,

如果我像这样放置正常的中断,

<wcl:GridView ....... />
<br />
<wcl:Button runat="server" ID="btnAddAnotherQuote" OnClientClick='AddDeliveryQuote(this);return false;' />
<wcl:HelpDialog runat="server" ID="hdDeliveryQuotes" />

那么它会出现在 Firefox 和 IE 中。 但如果我这样做:

<br runat="server" id="brAddAnotherQuote" />
<wcl:Button runat="server" ID="btnAddAnotherQuote" OnClientClick='AddDeliveryQuote(this);return false;' />
<wcl:HelpDialog runat="server" ID="hdDeliveryQuotes" />

然后查看 IE 的源代码,它会生成两个
其中一个 ID 为 brAddAnotherQuote,另一个 ID 为简单的“< br />”直接在它下面 在 Firefox 中不会发生这种情况,

这可能是什么原因造成的?

I have a issue with two breaks < Br /> appearing in IE,

If I have a normal break placed like so

<wcl:GridView ....... />
<br />
<wcl:Button runat="server" ID="btnAddAnotherQuote" OnClientClick='AddDeliveryQuote(this);return false;' />
<wcl:HelpDialog runat="server" ID="hdDeliveryQuotes" />

Then it appears in Firefox and IE fine.
But if i Do it like so:

<br runat="server" id="brAddAnotherQuote" />
<wcl:Button runat="server" ID="btnAddAnotherQuote" OnClientClick='AddDeliveryQuote(this);return false;' />
<wcl:HelpDialog runat="server" ID="hdDeliveryQuotes" />

Then looking at the source code for IE, it produces two
Once which has a ID of brAddAnotherQuote and one which is simple "< br />" directly under it
This doesn't happen in Firefox

What could be causing this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

以酷 2024-10-07 14:11:25

为什么不尝试类似以下内容来代替服务器端 br 标记。

<asp:Literal runat="server" id="brAddAnotherQuote" Text="<br />"></asp:Literal>

why dont you try something like following in place of server side br tag.

<asp:Literal runat="server" id="brAddAnotherQuote" Text="<br />"></asp:Literal>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文