Css 如何从样式中排除某些禁用的链接?
我的应用程序中有一些锚定链接,当禁用这些链接时,它们应该看起来是灰色的,因此我在css文件中应用了以下代码:-Css 如何从样式中排除某些禁用的链接?,css,hyperlink,Css,Hyperlink,我的应用程序中有一些锚定链接,当禁用这些链接时,它们应该看起来是灰色的,因此我在css文件中应用了以下代码:- a[disabled] { color: Grey !important; text-decoration: none !important; } 这似乎工作得很好,但我想排除1从采取这种风格的链接时,禁用。我该怎么做呢?试试看 a[disabled]:not(your selector) { color: Grey !important;
a[disabled]
{
color: Grey !important;
text-decoration: none !important;
}
这似乎工作得很好,但我想排除1从采取这种风格的链接时,禁用。我该怎么做呢?试试看
a[disabled]:not(your selector)
{
color: Grey !important;
text-decoration: none !important;
}
e、 g
看来你的选择器错了。一定是这样
a[disabled=disabled]{
color: Grey !important;
text-decoration: none !important;
}
你能告诉我你想排除的条件吗?。要排除的链接是asp:hyerlink。我必须在这里的“你的选择器”中提到它的Id吗?链接到排除代码-“还有更多类似的超链接。它们像按钮一样显示,因此必须排除。
a[disabled=disabled]{
color: Grey !important;
text-decoration: none !important;
}