Div Lights Fade 脚本 - 在 Mac 上不起作用?

发布于 2024-09-28 18:44:36 字数 479 浏览 1 评论 0原文

我有一个小的 javascript/css 脚本,可以将我的网站淡入黑色(中间的视频除外),以产生某种剧院效果

示例: http://www.animefushigi.com/bleach-episode-293

单击“LIGHTS OUT”

该脚本在除“vidboxx”div 之外的整个页面上添加黑色覆盖层。

有人说它有效,但不适合我

截图 http://img231.imageshack.us/img231/5963/firefoxscreensnapz002.png

关于如何修复有什么建议吗?

I have a little javascript/css script that fades my website to black, except for the video in the middle, to give a sort of theatre effect

Example : http://www.animefushigi.com/bleach-episode-293

Click LIGHTS OUT

The script adds a black overlay on the entire page except for the "vidboxx" div.

Some people say that it is working, but not for me

Screenshot
http://img231.imageshack.us/img231/5963/firefoxscreensnapz002.png

Any suggestions on how to fix?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

债姬 2024-10-05 18:44:36

为“vidboxx”添加一个 z-index,该 z-index 高于黑色叠加层的 z-index。示例:

#black-overlay: z-index:100;
#vidboxx      : z-index:101;

使用 Javascript,z-index 可以通过 yourelementhere.style.zIndex 访问

Add a z-index to "vidboxx", which is higher than the z-index of black overlay. Example:

#black-overlay: z-index:100;
#vidboxx      : z-index:101;

with Javascript, z-index is accessible by yourelementhere.style.zIndex

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文