can i have an onclick event on a imagemap area element

前端 未结 7 1178
死守一世寂寞
死守一世寂寞 2020-12-03 09:52

I would like to put an onclick event on an area element. Here is my setup:



        
7条回答
  •  无人及你
    2020-12-03 10:35

    Its the shape that's the problem. Your code has set shape equal to polygon but only has 4 points in the coordinates attribute. You need to set shape to rectangle instead.

    Set shape="rect" like this:

提交回复
热议问题