【发布时间】:2012-01-19 03:57:10
【问题描述】:
看到这条评论from jquery-ui
// Ignore z-index if position is set to a value where z-index is ignored by the browser
// This makes behavior of this function consistent across browsers
// WebKit always returns auto if the element is positioned
如果元素是 position: static,我看到 jquery 的 zIndex() 返回 0。
位置:静态不支持 z-index 吗? (它在 Chrome 中适用于我,尚未测试跨浏览器)
【问题讨论】:
-
@Dve - 不是真的。该问题的答案是
It does not apply to elements with static position.我在问为什么。