Why are linkbuttons not grayed out when disabled in FireFox?

后端 未结 5 1693
星月不相逢
星月不相逢 2021-02-06 02:39

Why when I set enabled=false on a button does it not render correctly in Firefox? Instead of graying out the link it is still blue.

[UPDATE]

ASP.net already rem

5条回答
  •  被撕碎了的回忆
    2021-02-06 03:08

    When you disable a button it adds "aspNetDisabled" class to the button. so you can easily set the "aspNetDisabled" class with whatever you want.

     .aspNetDisabled {
            color: black;
            background-color: #e3e3e3;
            text-decoration: none;
        }
    

提交回复
热议问题