Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人可以告诉我是否可能以及如何使用“Highslide JS”中的调光选项来模糊背景,我知道它可能不适用于某些浏览器,但我仍然愿意尝试一下。其次,有人能告诉我如何在鼠标点击时触发调光器,而不是像默认那样在弹出图像加载时触发。
谢谢你的耐心!
关于第二个问题,您是否只想让背景立即变暗,而不是逐渐变暗?如果是这样,请尝试:
hs.dimmingDuration = 0;
在图像扩展发生之前真正触发调光需要对 highslide-full.js 进行一些黑客攻击。你必须做一些修修补补。你需要移动这个:
if (this.dimmingOpacity) hs.dim(this);
从 afterExpand() 函数到 show() 函数。