[英]Change the default color of a Link
In My code I have 在我的代码中
<div class="row-fluid"><div class="span12" style="color:red"><a href="/event/alert/recipient/list/${alertStatusForm.forAlert.id}" class="underline">${fn:length(alertStatusForm.totalNotSentRecipient)}</a></div></div>
Still Its not working Please suggest 仍然无法正常工作,请提出建议
You must apply the CSS directly to the <a>
. 您必须将CSS直接应用于
<a>
。 <a>
elements will not inherit the font color by default. <a>
元素默认不会继承字体颜色。
CSS: CSS:
.span12 a{
color: red
}
a:visited{
color: red
}
.span12 a
{
color : #FF0000;
}
.span12 a:visited
{
color: #FF0000;
}
Use this .span12 a{ color:#000; }
使用此
.span12 a{ color:#000; }
.span12 a{ color:#000; }
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.