Css 我的原始按钮赢了';我不会出现,但我的盘旋会出现吗?

Css 我的原始按钮赢了';我不会出现,但我的盘旋会出现吗?,css,button,web,hover,hyperlink,Css,Button,Web,Hover,Hyperlink,在我的网站上,我的按钮没有出现。但是,当我把鼠标放在它们上面时,悬停的图像确实出现了。他们给你看了吗?让我知道 链接:这是navicon的css .navicon a#terms { display: block; height: 27px; width: 138px; } 悬停时,添加背景图像 .navicon a#terms:hover { background: url("http://icpy.webs.com/button/Terms0.png") n

在我的网站上,我的按钮没有出现。但是,当我把鼠标放在它们上面时,悬停的图像确实出现了。他们给你看了吗?让我知道


链接:

这是navicon的css

.navicon a#terms {
    display: block;
    height: 27px;
    width: 138px;
}
悬停时,添加背景图像

.navicon a#terms:hover {
    background: url("http://icpy.webs.com/button/Terms0.png") no-repeat scroll 0 0     transparent;
}
您需要将背景图像添加到实际链接中

.navicon a#terms {
    display: block;
    height: 27px;
    width: 138px;
    background: url("http://icpy.webs.com/button/Terms0.png") no-repeat scroll 0 0     transparent;
}

您在背景图像的css上犯了一个错误:

.layicon a#semi{display: block;width:138px;height:27px;background:url(http://icpy.webs.com/button/semi.png) no-repeat;}.
您在url属性前面添加了“回车”或\n

尝试用chrome打开你的网站,然后检查你的元素。 chrome会显示你的背景设置是非法的