简体   繁体   English

Fancybox单击后删除蓝色轮廓

[英]Fancybox remove blue outline after click

I'am using Fancybox 3 and i can't find or get rid of the default blue outline that is showing after you open and close a image or video in Fancybox. 我正在使用Fancybox 3,但是无法找到或摆脱在Fancybox中打开和关闭图像或视频后显示的默认蓝色轮廓。 It disappears after you click next to it, but don't want it at all there. 单击它旁边后,它会消失,但根本不想要它。 Anyone can help? 有人可以帮忙吗?

在此处输入图片说明

Fancybox 3 Fancybox 3

在您的主要css表中声明如下,并检查一次;

* { outline:none; }

I can't reproduce the blue outline for the examples on the site that you linked. 在您链接的网站上,我无法复制示例的蓝色轮廓。 Can you create a jsfiddle ? 你可以创建一个jsfiddle吗?

fancybox is not adding any outline, your browser does, because clicked element gets focus. fancybox不会添加任何轮廓,您的浏览器不会添加任何轮廓,因为单击的元素会获得焦点。 So, either set backFocus:false to disable that feature or use CSS to change focus state for your element. 因此,将backFocus:false设置为禁用该功能,或使用CSS更改元素的焦点状态。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM