首页 > 解决方案 > Google chrome 版本 72.0.3626.81 错误或代码错误?

问题描述

我有 Google chrome 版本 72.0.3626.81 不工作,但当我使用版本 71 时它工作。

如何进行以下工作?

<img src="abcd/720p.jpg" usemap="map_sync" id="spmain">
<map name="map_sync" class="maps" id="map_sync">
        <area shape="rect" coords="225, 214, 1053, 298" nohref="" onclick="eid();">       
        <area shape="rect" coords="224, 319, 1052, 403" nohref="" onclick="no_eid();">                     
      </map>

没有任何 javascript 方法在 72 稳定版上执行,但在 71 上它可以工作。我重新测试了对齐方式,地图对齐方式也正确。

是BUG还是代码问题?

标签: javascripthtmlgoogle-chromechromium

解决方案


在谷歌浏览器 72

FAIL 72 - $('#spmain').attr('usemap', 'map_sync');
WORKS 72 - $('#spmain').attr('usemap', '#map_sync');

推荐阅读