在我的代码中有
<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
}
关于html - 更改链接的默认颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18464711/