gpt4 book ai didi

firefox - 添加到多行文本框的额外字符

转载 作者:行者123 更新时间:2023-12-02 08:45:26 25 4
gpt4 key购买 nike

我遇到的问题是,当我创建多行文本框时,它会在前面加上 (回车换行)字符。

我正在使用 .NET 4.5。我创建了一个只有多行文本框的空项目:

<asp:TextBox ID="txtTest" runat="server" TextMode="MultiLine" Rows="5" Columns="50"></asp:TextBox>

在 firefox 和 chrome 中它呈现为:

<textarea name="txtTest" rows="5" cols="50" id="txtTest">&#13;&#10;</textarea> 

在IE中,没问题。

提前谢谢你。

最佳答案

jmoreno建议,改变

controlRenderingCompatibilityVersion=4.0

controlRenderingCompatibilityVersion=4.5

web.config 中帮助了我。

关于firefox - 添加到多行文本框的额外字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12827198/

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