IE 复制服务器端中断
我有两次休息的问题 < 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为什么不尝试类似以下内容来代替服务器端 br 标记。
why dont you try something like following in place of server side br tag.