html - 如何删除图像映射中图像上的蓝色边框?
问题描述
我为时事通讯中的图像创建了图像映射。每次单击链接区域时,它周围都会出现一个蓝色边框(下图)。有没有办法阻止这种情况?我是编码新手,所以任何帮助将不胜感激。谢谢!
这是我的代码:
<img src="1234.jpg" width="600" height="341" border="0" usemap="#map">
<map name="map">
<area shape="rect" coords="18,24,193,64" href="https://google.com/">
<area shape="rect" coords="212,23,388,287" href="https://google.com/">
<area shape="rect" coords="405,23,582,287" href="https://google.com/">
</map>
解决方案
您可以在 CSS 中进行设置。
img {
outline: 0;
}
或作为样式属性:
<img src="1234.jpg" width="600" height="341" border="0" usemap="#map" style="outline: 0;">
推荐阅读
- r - 如何使用循环 | 申请 | 映射以对多个变量值的数据框进行切片并在 r 中创建多个统计摘要()
- sql - 选择并显示与用户提示的ename具有相同deptno和mgr的员工
- python - 在同一 python 代码中编辑 models.py 文件并将更改迁移到数据库
- android - CallScreeningService - 几秒钟后断开呼叫 - Android 10
- laravel - 如何在laravel中显示软删除的项目?
- javascript - 如何使用 vue 多选通过循环创建对象
- javascript - “e.response 不是函数”在我提交相关的谷歌表单后说谷歌应用脚本
- html - 问题cgi