The links that are part of text in the jQuery UI Dialog gets a black color from ui css using the class ui-widget-content
. I can override and apply new color to the content. But i want that css from not applying to the links. Removing that class is not applicable.
作为jQuery UI对话框中文本一部分的链接使用类ui-widget-content从ui css获取黑色。我可以覆盖并将新颜色应用于内容。但我希望css不适用于链接。删除该类不适用。
.ui-widget-content a{
color : #ffffff;
}
1 个解决方案
#1
0
This may help you with the issue. See the CSS I coded below
这可能会帮助您解决问题。请参阅下面我编码的CSS
.ui-widget-content > a:link, .ui-widget-content > a:visited{
color : #ccc;
}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.css">
<div class="ui-widget-content">
<p>paragraph</p>
<a href="#"> this is a link because it has an href attr</a>
</div>
#1
0
This may help you with the issue. See the CSS I coded below
这可能会帮助您解决问题。请参阅下面我编码的CSS
.ui-widget-content > a:link, .ui-widget-content > a:visited{
color : #ccc;
}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.css">
<div class="ui-widget-content">
<p>paragraph</p>
<a href="#"> this is a link because it has an href attr</a>
</div>