[英]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?
有人可以帮忙吗?
在您的主要css表中声明如下,并检查一次;
* { outline:none; }
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.