惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

K
Kaspersky official blog
Martin Fowler
Martin Fowler
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
V
Visual Studio Blog
博客园_首页
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
MongoDB | Blog
MongoDB | Blog
Blog — PlanetScale
Blog — PlanetScale
T
The Blog of Author Tim Ferriss
雷峰网
雷峰网
D
Docker
博客园 - 司徒正美
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
U
Unit 42
J
Java Code Geeks
A
About on SuperTechFans
N
Netflix TechBlog - Medium
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
S
Security Affairs
I
Intezer
Cisco Talos Blog
Cisco Talos Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
B
Blog RSS Feed
P
Privacy & Cybersecurity Law Blog
T
Tenable Blog
T
Threatpost
H
Hacker News: Front Page
G
Google Developers Blog
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
L
Lohrmann on Cybersecurity
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
A
Arctic Wolf
S
Secure Thoughts
GbyAI
GbyAI
NISL@THU
NISL@THU
S
Security @ Cisco Blogs
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Webroot Blog
Webroot Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
O
OpenAI News
Spread Privacy
Spread Privacy
Application and Cybersecurity Blog
Application and Cybersecurity Blog

博客园 - life++

multer /busboy 上传文件无法完成回调问题 linux系统上搭建egret构建环境(针对5.3.x 版以上) android studio 2.0 Gradle HttpProxy 设置 javascript的 parseInt 曾经的“陷井”在IE10上不见了,但还是得注意! 无法将类型为“xxxx”的对象强制转换为类型“Microsoft.SharePoint.WebPartPages.WebPart”。 ajax 12301 原因小结 被人忽悠完成的56.com我秀聊天室群发软件 WebDav基于Exchange2003开发邮件收发系统 fiddler 调试 WebDav 引起400错误处理 HTML-JS中的单双引混合处理原则 [笔记]443端口没开放让svn https连接不上 ora10ginstant 精简客户端遇到 system.data.oracleclient 需要 oracle 客户端软件8.1.7 或更高版本 手动调用__doPostBack('xx','') 在IE6, 下留意 javascript:void(0);问题。 [原]SWFUpload 在IE9下不显示问题及IE9中模态窗下flash文件选择问题的处理 JQuery-easyui accordion 滚动条在IE6下“丢失”的处理 asp.net Ajax 页中使用jquery-easyui的显示问题处理 equal 与 == 自问自答 胡乱写个 List string 类型排序。
让relative容器里的元素的z-index高于body下的遮照层
life++ · 2011-06-24 · via 博客园 - life++

结构大致如下:

<html>
<head>
</head>

<body>
    <div id="main">
        <div id="operate">
            [操作][操作][操作][操作][操作]
        </div>
        <div id="relativePanel" class="allowScroll">
                 <div id="wantoPop">东西东西东西东西东西东西
      </div>
</div> </div> <div id="mask"></div>
</body>
</html>

由于某种需要,紫色的  relativepanel 需要使用 相对定位。而当它的子元素需要做pop 效果的时候,z-index 怎么设 都会被红色的 mask 挡住,尽管本意是 mask 挡住页面, wantoPop 在 mask 之上。

解决办法 是把该死的 relativepanel 的 position:relative 去掉,当然,在不影响原有效果的情况下(加relative也是有深意的啊……)

另一种是,将 wantoPop 提出来,跟它老爸分家,使用 $('body').append($('#wantoPop').detach()); 将它移到 body 根下。形成效果如下:

需要注意的是,移动之后,如果有跟上级关联的样式需要特殊处理。

<html>
<head>
</head>

<body>
    <div id="main">
        <div id="operate">
            [操作][操作][操作][操作][操作]
        </div>
        <div id="relativePanel" class="allowScroll">
                    </div>
    </div>
    <div id="mask"></div>
     <div id="wantoPop">东西东西东西东西东西东西
      </div>
</body> </html>