我的图像导航是否错过了一些东西?它不可点击
有人可以帮我下面吗?我的图像不可点击,但我不确定为什么?
<img src= "makeup.html.jpg" alt= "Make up by Lauren Evans logo" title= "Make up by Lauren Evans"
width= "300" height= "300" class= "floattoright" usemap= "MakeupbyLaurenEvans" />
<map name= "Make up by Lauren Evans">
<area shape= "rect" coords= "0, 0, 230, 218" href= "https://www.instagram.com/makeupbylaurenevans/?hl=en"
alt="Make up by Lauren Evans Instagram" />
</map>
Can someone please help me with the below? My image is not clickable but I'm not sure why?
<img src= "makeup.html.jpg" alt= "Make up by Lauren Evans logo" title= "Make up by Lauren Evans"
width= "300" height= "300" class= "floattoright" usemap= "MakeupbyLaurenEvans" />
<map name= "Make up by Lauren Evans">
<area shape= "rect" coords= "0, 0, 230, 218" href= "https://www.instagram.com/makeupbylaurenevans/?hl=en"
alt="Make up by Lauren Evans Instagram" />
</map>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
检查以下代码:
Check the following code:
实际上,它是可单击的,但是您没有
onclick
可以处理它,并且光标:指针;
造型也缺少。我添加了样式和一些虚拟点击处理程序。Actually it's clickable, but you have no
onclick
event to handle it and thecursor: pointer;
styling is also missing. I have added the styling and some dummy click handler.问题是代码。如您所见,您可以看到 example 。
在
usemap
属性中,您需要添加#
喜欢usemap =“ #makeupbylaurenevans”
usemap =。然后在地图
标签中,名称应与您在usemap
属性中定义的属性相同:name =“ Makepbylaurenevans”
现在,代码外观像这样:
工作示例
There is issue is the code. As you can see from this example.
In
usemap
attributes you need to add map tag name with#
likeusemap= "#MakeupbyLaurenEvans"
. Then in themap
tag, name should be same as you defined inusemap
attribute like this:name= "MakeupbyLaurenEvans"
Now, the code looks like this:
Working Example