ButtonFilterSelectionL

ButtonFilterSelectionL

我有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?

最佳答案

解决了

我应该使用.ButtonFilterSelectionL:enabled而不是。ButtonFilterSelectionL:active

09-04 17:46