[英]how to remove the border?
请帮助解决问题。
HTML:
<img class="logo_pic img-responsive" src="images/logo.png" alt="logo" usemap="#link_index" />
<map name="link_index">
<area shape="rect" coords="1,1,400,480" href="index.html" alt="" />
</map>
问题是,当您单击图像时,图像中会出现蓝色边框。 他们在一秒钟内消失了,但我需要使其不出现
谷歌浏览器最新版本
您看到的蓝色边框实际上是处于“活动”状态的超链接。 您可以添加css定义来设置这些边框的样式:
area:focus{
border: none;
outline-style: none;
-moz-outline-style:none;
}
尝试:
<img class="logo_pic img-responsive" src="images/logo.png" alt="logo" usemap="#link_index" style="border:0"/>
您也可以在CSS
样式表上执行此操作
.logo_pic img-responsive {
border:0;
}
.logo_pic img-responsive:hover {
border:0;
}
编辑
img:active, :focus { outline: none; -moz-outline-style: none; }
的jsfiddle:
内联CSS ...
<img class="logo_pic img-responsive" src="images/logo.png" alt="logo" style="border:0;" usemap="#link_index" />
<map name="link_index">
<area shape="rect" coords="1,1,400,480" href="index.html" alt="" />
</map>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.