CSS活动按钮

时间:2015-05-27 14:52:59

标签: c# html css

我有html代码

asp:Button ID="btnStartExportRPT" EnableTheming="true" CssClass="ButtonFilterSelectionL"
                                    Text="<%$ Resources:GlobalResources, cmdStartExecute %>" runat="server"/>

我有css

.ButtonFilterSelectionL
{
    font-family: Segoe UI, Verdana;
    font-size: 13px;
    font-weight:lighter;
    color: #999999;
    vertical-align:middle;
}
.ButtonFilterSelectionL:active
{
    font-family: Segoe UI, Verdana;
    font-size: 13px;
    font-weight:lighter;
    color: #005C8B;
    vertical-align:middle;
}

在我的C#代码中,我已经在一些函数之后定义了

 btnStartExportRPT.Enabled = true;

我想知道如何使用.ButtonFilterSelectionL:active css?

1 个答案:

答案 0 :(得分:0)

解决

我应该使用.ButtonFilterSelectionL:enabled代替。ButtonFilterSelectionL:active