将 CSS3 Pie 与 jQuery BlockUI 结合使用
我正在使用 CSS3 Pie 来执行跨浏览器边框半径和框阴影。这真的很棒。但是,当与 jQuery blockUI 插件(使用模式对话框)一起使用时,CSS3 Pie 功能不适用到该对话框元素。
这是因为position:fixed 的 z-index 问题,此处也对此进行了描述。我已经尝试将位置更改为目标元素上的相对位置,并使用 z-index 进行操作,但它不起作用。
也许你们中的某个人遇到了类似的问题,可以在这里帮助我
I am using CSS3 Pie for doing cross browser border-radius and box-shadows. This works really great. But when used together with the jQuery blockUI plugin (using modal dialogs), CSS3 Pie functionality does not apply to that dialog element.
This is because of the z-index problem with position:fixed , which is also described here. I already tried to change position to relative on the target element, played arround with the z-index, but it won´t work.
Maybe someone of you had a similar problem and can help me out here
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您使用什么版本的 CSS3Pie?
我不知道 blockUI 是如何工作的,但它有可能在不使用时将其弹出元素隐藏在屏幕顶部或类似的地方。
如果是这种情况,并且您使用的是 CSS3Pie (beta 1) 的第一个版本,则该版本中存在一个错误,当它尝试访问具有负位置的元素时,会引发 Javascript 错误。这个bug已经在beta 2中修复了。
如果你使用的是beta 1,你应该返回CSS3Pie站点并安装beta 2。
最后,你在CSS3Pie站点上询问过吗——论坛相当活跃,开发人员也很活跃。自己回答了很多问题。
如果仍然不起作用,我相信他很快就会发布第三个测试版。
What version of CSS3Pie are you using?
I don't know how blockUI works, but it is possible that it hides its pop-up elements off the top of the screen or something like that while they're not being used.
If that's the case, and if you're using the first version of CSS3Pie (beta 1), there was a bug in that version which threw a Javascript error when it tried to access an element with a negative position. This bug has been fixed in beta 2.
If you're using beta 1, you should go back to the CSS3Pie site and install beta 2.
Finally, have you asked on the CSS3Pie site -- the forums are fairly active, and the developer answers a lot of questions himself.
If it still doesn't work, I believe he's getting quite close to releasing a third beta version fairly soon.