[英]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.