就是导航拦,我设置连接颜色全部都是黑色,但有一个连接我想做成红色,我这么做的
<a href="#" class="red">aaa</a>
然后css里写 .red{color:red;}
但是不起效果,一般一堆连接,对某几个连接作用单独的效果该怎么做呀,
<a href="#" title="xxx"><font color=red>xxx(HOT)</font></a><br />这样虽然可以,但是不符合规范呀,请大家指教,请老鬼赐教!
|
|||||||
| 网站开发与设计 网页设计、网站开发、网站维护与调试交流区。 |
| 双至强仅二千,企商在线,最早租用商 | 时代冠军主机588元/2年送邮箱域名 | 亿恩1元帮您升级服务器! | 全球最新的创意可以产品 |
| 站长轻松日赚500,日结稳定高价,QQ:705491 705492 | 英雄合击 热血江湖私服 传奇私服 | 此文字广告位招租 | 完美世界私服 魔域私服 传奇私服 |
![]() |
|
|
主题工具 | 主题评分 | 显示模式 |
|
|
#3 (页面定位) |
|
青铜长老
![]() 注册日期: 2006-05-23
帖子: 266
![]() |
问题解决
解决方法如下 没人回答偶也得把方法写上帮助后人,哈哈 <html> <style> a:link { color: #000;text-decoration: none;} a:visited { color: #000;text-decoration: none;} a:hover { color: #000; text-decoration: underline;} a.b:link { color: #f00;text-decoration: none;} a.b:visited { color: #f00;text-decoration: none;} a.b:hover { color: #000; text-decoration: underline;} </style> <a href="#" class="b">aaa</a> <a href="#">aaa</a> </html> |
|
|
|
|
|
#5 (页面定位) |
![]() 注册日期: 2006-07-08
帖子: 94
![]() |
<html>
<style> a:link,a:visited { color: #000;text-decoration: none;} a:hover {text-decoration: underline;} a.b:link,a.b:visited { color: #f00;text-decoration: none;} a.b:hover {text-decoration: underline;} </style> <a href="#" class="b">aaa</a> <a href="#">aaa</a> </html> 至少应该这么写的, ![]() |
|
|
|