gpt4 book ai didi

html - IE 复制服务器端 Break

转载 作者:行者123 更新时间:2023-11-27 22:50:24 25 4
gpt4 key购买 nike

我有两个中断 < 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 和一个简单的“< br/>”直接在它下面这在 Firefox 中不会发生

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

最佳答案

你为什么不尝试用下面的东西代替服务器端的 br 标签。

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

关于html - IE 复制服务器端 Break <br>,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4096499/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com