搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Why does the a:visited CSS style not change anything other than color or background color in Firefox 6? Setting text-decoration and text-transform do not work.

  • 2 个回答
  • 4 人有此问题
  • 8 次查看
  • 最后回复者为 disparprof

more options

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Visited Problem</title> <style type="text/css"> #footer a:link { color: white; background-color: orange; text-transform: uppercase; } #footer a:visited { color: red; background-color: black; text-transform: lowercase; text-decoration: none; } </style>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Visited Problem</title> <style type="text/css"> #footer a:link { color: white; background-color: orange; text-transform: uppercase; } #footer a:visited { color: red; background-color: black; text-transform: lowercase; text-decoration: none; } </style> </head> <body> <div id="footer"> <p><a href="http://www.usatoday.com">USA Today</a></p> </div> </style> </head> <body> <div id="footer"> <p><a href="http://www.usatoday.com">USA Today</a></p> </div>

所有回复 (2)

more options

选择的解决方案

由cor-el于修改

more options

Mystery solved. Thanks.