【发布时间】:2012-04-18 07:45:24
【问题描述】:
我正在尝试构建我的第一个网站,并尝试使用 CSS 中的“a:hover”功能,但无法使用 - 无论是否悬停,链接看起来都一样。
这是我的 CSS 文件的 sn-p:
/* main page elements */
a:link
{
text-decoration: none;
color:white;
}
a:visited
{
text-decoration: none;
color:FFFFFF;
}
a:hover
{
text-decoration: none;
color:blue;
}
a:active
{
text-decoration: none;
color:blue;
}
任何帮助表示赞赏。
谢谢, 罗伯特。
【问题讨论】:
-
它做错了什么?你的 HTML 在哪里?
标签: html css hyperlink hover mouseover