为图像地图(区域)中的链接添加悬停效果 [英] Adding hover effects for links in image map (area)
本文介绍了为图像地图(区域)中的链接添加悬停效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我只是html的初学者,我想为我的图像贴图添加悬停效果.我已经搜索了很多解决方案,但是我只能使用我不理解的脚本来提出解决方案.
I'm only a beginner in html and I would like to put hover effects for my image map. I have searched for lots of solutions but I only come up with solutions using script which I don't understand.
此脚本如何工作?我尝试使用
How does this script work? I tried using
area:hover {
border: 1px solid white;
}
但是它不起作用.
推荐答案
您要尝试做的事情不是很简单,您必须将javascript和css或jquery结合起来才能达到想要的效果.
What you're trying to do is not very simple, you will have to combine javascript and css or jquery to give the effect you want.
不幸的是,因为area
元素不直接接受hover
……
It's because the area
element doesn't accept hover
directly, unfortunately...
但是好消息是它在这里之前被回答过:
But the good news is that it was answered before here:
这篇关于为图像地图(区域)中的链接添加悬停效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文