[英]Change the default color of a Link
在我的代码中
<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>
仍然无法正常工作,请提出建议
您必须将CSS直接应用于<a>
。 <a>
元素默认不会继承字体颜色。
CSS:
.span12 a{
color: red
}
a:visited{
color: red
}
.span12 a
{
color : #FF0000;
}
.span12 a:visited
{
color: #FF0000;
}
使用此.span12 a{ color:#000; }
.span12 a{ color:#000; }
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.