请参阅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
Run Code Online (Sandbox Code Playgroud)
我看到zIndex()如果元素是jquery,则返回0 position: static.
位置上是否支持z-index:static?(它在Chrome中适用于我,未经过跨浏览器测试)