【发布时间】:2014-12-25 11:43:30
【问题描述】:
<div runat="server" class="labels" style="display:none; height: 100%; font-family: 'Segoe UI';">
<asp:Label ID="Label4" runat="server" Text="Description:" Font-Bold="True"></asp:Label>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<br />
<asp:Label ID="Label5" runat="server" Text="Impact:" Font-Bold="True"></asp:Label>
<asp:Label ID="Label2" runat="server" Text="Label"></asp:Label>
<br />
<asp:Label ID="Label6" runat="server" Text="Recommendation:" Font-Bold="True"></asp:Label>
<asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
<br /><br />
</div>
我想将样式更改为 display:true,因为它在 display:none 中知道,我想使用 c# 代码来完成。如何调用类名并更改其样式/属性...
【问题讨论】: