Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在我的代码中我有
<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>默认情况下,元素不会继承字体颜色。
<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; }