简体   繁体   English

如何在fancybox弹出图像上禁用蓝色/绿色矩形?

[英]How to disable blue/green rectangle on fancybox popup image?

The problem is on the following page: http://stanok-by.ru/site/index.php/stanok-01问题出在以下页面: http://stanok-by.ru/site/index.php/stanok-01

Joomla Simple Image Gallery plugin uses fancybox library. Joomla Simple Image Gallery插件使用fancybox库。 While clicking on a small image a large one pops up.单击小图像时,会弹出一个大图像。 When I hover mouse cursor on right or left side of large image there appears a blue rectangle closing part of the image.当我 hover 鼠标 cursor 在大图像的右侧或左侧出现蓝色矩形关闭部分图像。 How to turn off this rectangle?如何关闭这个矩形?

As I understood, this element corresponds to following HTML tag defined in file jquery.fancybox.js:据我了解,此元素对应于文件 jquery.fancybox.js 中定义的以下 HTML 标记:

<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"></a> <a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"></a>

So, there are following common Joomla css rules for "a" links from this css file: http://stanok-by.ru/site/templates/beez_20/css/personal.css So, there are following common Joomla css rules for "a" links from this css file: http://stanok-by.ru/site/templates/beez_20/css/personal.css

a:hover,
a:active,
a:focus
{
    background:#095197;
    color:#FFF;
} 

How can I deprecate these rules for fancybox?我怎样才能弃用fancybox的这些规则? Can I write somewhere in it:我可以在其中的某处写:

a:hover,
a:active,
a:focus
{
    background:none;
} 

Or it will not work as it does not now?或者它不会像现在那样工作?

Expected: Blue rectangle not appearing.预期:未出现蓝色矩形。

I do not see any blue rectangle, but I guess that it is an outline and you can disable that using smth like a:focus { outline: none}我没有看到任何蓝色矩形,但我猜它是一个轮廓,您可以使用 smth 来禁用它,例如a:focus { outline: none}

Problem was fixed by adding following code:通过添加以下代码解决了问题:

To.js file: To.js 文件:

<a id="a-fancybox-next" title="Next" class="fancybox-nav fancybox-next" href="javascript:;"></a>

To.css file:到.css文件:

#a-fancybox-next
{
    background: none;
}

How can I contribute this fix to Simple Image Gallery plugin distributive for Joomla?如何将此修复程序贡献给 Joomla 的 Simple Image Gallery 插件分发?

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

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