当多个图像映射与jQuery在同一页面上时,如何定位单个图像映射区域
我在页面上有三个图像映射,并希望为每个地图选择区域。
地图1 HTML
地图2 HTML
地图3 HTML
我试过这些选择器:
$('#Map1 > area.fancybox') // function $('map > #Map1 > area.fancybox') // function
您的第一个选择器准确定位特定地图:
- 小提琴
如果要选择任何区域,只需使用:
$('area');