相关疑难解决方法(0)

为什么z-index被position:static忽略?

请参阅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中适用于我,未经过跨浏览器测试)

html css jquery z-index

20
推荐指数
2
解决办法
1万
查看次数

标签 统计

css ×1

html ×1

jquery ×1

z-index ×1