0

我的网站上有一个按钮,其中 text 属性是多行的。

<asp:Button CssClass="button" 
            ID="submitOrderButton" 
            runat="server" 
            Text="line 1&#10;line 2&#10;line 3" 
            Height="80px" Width="150px"  />

此按钮在最常见的 Web 浏览器上按预期显示。

但是,在 IE10 中查看我的网站时,我无法正确显示文本。

该应用程序正在部署 .Net 4.0。编辑器 VS 2012。

其他人能否确认此行为特定于 IE 10 浏览器。

4

2 回答 2

1

这在 VB.net 上很简单 -->

Your_button.Text = "Hello" + Environment.NewLine + "Word"

于 2014-05-28T20:54:49.180 回答
0

感谢 AAP。

这对我来说适用于 C#、IE 10 和 VS2012。

Your_Button.Text = "Hello" + Environment.NewLine + "World";

如果这有帮助,请+1...

于 2015-02-24T06:20:43.067 回答