【发布时间】:2010-10-11 02:06:05
【问题描述】:
我有这门课:
.news_item_info
{
font-size: .7em;
color:#000000;
text-indent: 30px;
a:link { color: #000000; }
a:visited { color: #000000; }
}
这里有代码:
<div class="news_item_info">
<?php echo $articles[$index]->getPoints(); ?> puntos por <span class="news_item_user"><a href="/index.php?action=user¶m=<?php echo $articles[$index]->getUsername(); ?>">
<?php echo $articles[$index]->getUsername(); ?></a> </span>
<?php echo $articles[$index]->getElapsedDateTime(); ?> | <span class="comments_count"><a href="<?php echo "/index.php?action=comments¶m=".$articles[$index]->getId(); ?>"><?php echo $articles[$index]->getNumberOfComments($articles[$index]->getId()); ?> comentarios</a></span>
</div>
问题是,在我访问用户个人资料后,它显示为灰色,我想保持黑色。
如果有人知道答案,我将不胜感激。
【问题讨论】:
-
即使你不能用 CSS 做到这一点,如果你能做到,那就太酷了。
-
@Paolo:你可以用 CSS 做到这一点,只是语法不同。