gpt4 book ai didi

html - 无法更改菜单栏中的图像 "onhover"?

转载 作者:行者123 更新时间:2023-11-27 23:54:05 26 4
gpt4 key购买 nike

我必须创建一个菜单栏,其中有类似 facebook 的通知球。我遇到了不能像 Facebook 那样在悬停时更改图像的问题。那我应该得到一些适当的解决方案吗?我的代码如下:

#noti_Container {
position:relative;
background:url(../images/globe-final_simple.png) no-repeat;
width:25px;
height:25px;
display:block;
}

#noti_container:onhover{
background:url(../images/globe-final_onhover.png) no-repeat;
}

这是悬停的地球仪而不是这个我想要深色地球仪。

enter image description here enter image description here

最佳答案

#noti_container:hover{
background:url(../images/globe-final_onhover.png) no-repeat;}

试试这段代码

关于html - 无法更改菜单栏中的图像 "onhover"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25113381/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com