我有一个图像映射:
<map>
<area ..>
<area ..>
</map>
IE 中显示了一个大纲,所以我修改了代码:
<area onfocus="blur();"
这从 IE 中删除了轮廓,但现在当我在 Firefox(版本 9.0.1)中单击该区域时我有一个轮廓...
我也试过:
map > area,
map > area:active,
map > area:focus {outline: none; border:0; }
- 使用来自 this posting 的信息...
如有任何建议,我们将不胜感激。
最佳答案
尝试将此添加到您的 CSS:
area:active, area:focus {
outline: none;
}
关于javascript - map 区域 : onfocus=blur() works in IE but now adds an outline to Firefox?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8943807/