0

我想用asp:面板鍍鉻:ASP:面板分組的文本和邊框沒有使用鍍鉻顯示/ IE10

我的代碼很簡單:

<asp:Panel ID="pnlLoginErrorMessage" runat="server" style="height:50px; Width:100%;" GroupingText="Panel"> 
       <asp:TextBox id="tbLoginMessage" onFocus="blur();" style="Width:100%;" TextMode="MultiLine" BorderWidth="0" BorderStyle="None" ReadOnly="true" Wrap="true" runat="Server" /> 

</asp:Panel> 

Chrome的結果是這樣的: enter image description here

分組文本不顯示,也沒有面板邊框。 它也發生在IE10中(沒有兼容模式)。

爲什麼?

回答

0

我們有同樣的問題:我們的解決方案是使用LiteralControl與字段集,並直接傳說......

+0

這不是問題的答案。如果你有問題,你可以[問你的問題](http://stackoverflow.com/questions/ask)。 – 2013-09-30 07:35:17

1

找到"Site.css"文件在您解決方案並根據您的要求更改"fieldset"類。 請注意,此更改將對應用程序範圍產生影響。

fieldset { 
display: block; 
border: 1px solid grey !important; 
margin: 5px; 
padding: 5px; 
} 
fieldset legend { 
    display: block; 
}