Rob*_*ert 0 html css mouseover hyperlink hover
我正在尝试构建我的第一个网站,并尝试在CSS中使用"a:hover"功能但无法使其工作 - 无论是否悬停,链接看起来都一样.
这是我的CSS文件的片段:
/* 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;
}
Run Code Online (Sandbox Code Playgroud)
任何帮助赞赏.
谢谢,罗伯特.
你需要芬兰文本装饰指令:P
text-decoration: none;
Run Code Online (Sandbox Code Playgroud)
要么
text-decoration: underline;
Run Code Online (Sandbox Code Playgroud)