为什么在FireFox中禁用时linkbuttons不是灰色的? [英] Why are linkbuttons not grayed out when disabled in FireFox?
问题描述
为什么当我设置启用=假上的按钮它不能在Firefox正确呈现?相反变灰链接它仍然是蓝色的。
[更新]
ASP.net已经在链接上消除了这种标记,以便需要的唯一事情就是变为灰色,他联系。换句话说CSS样式的变化不是功能的变化。
在有效地解决以下禁用按钮不会显示为在Firefox和谷歌Chrome变灰。我把这个在我的样式表,现在我所有的链接按钮正确呈现。
A [禁用] {
!颜色:灰色重要;
文字修饰:无重要;
}
A [禁用]
{
颜色:灰色;文字修饰:无;
}
为我工作,谢谢...
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 removes such tags on the link so the only thing that is needed is to grey out he link. In other words a CSS style change not a functionality change.
The following effectively resolved the disabled buttons not showing up as grayed out in firefox and google chrome. I put this into my style sheet and now all my link buttons render correctly.
a[disabled]{
color:Grey !important;
text-decoration:none !important;
}
a[disabled]
{
color:Grey; text-decoration:none;
}
worked for me, Thank you...
这篇关于为什么在FireFox中禁用时linkbuttons不是灰色的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!