CSS给同一个网页中的超链接设置不同的样式 首页 » 编程语言 » CSS给同一个网页中的超链接设置不同的样式 分享到各大社区 全屏 A <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style type="text/css"> a.topcs:link { font-size: 16px; color: #de3d32; } a.topcs:visited { font-size: 16px; color: #de3d32; } a.topcs:hover { font-size: 16px; color: #de3d32; } a.news:link { font-size: 12px; color: #000000; text-decoration: none; } a.news:visited { font-size: 12px; color: #000000; text-decoration: none; } a.news:hover { font-size: 12px; color: #FF0000; text-decoration: none; } </style> <title>无标题文档</title> </head> <body> <a href="1.html" class="news">1</a> <a href="2.html" class="topcs">1</a> </body> </html> 标签:CSS 版权声明:若无特殊注明,本文皆为( VISAce )收集整理,版权归原作者所有。—— 李佳培.中国
发表评论
既然没有评论,那就赶紧抢沙发吧!