cursor: pointer失效问题

1,244 阅读1分钟

问题

发现给div设置的cursor:pointer失效。没有效果。

原因

可能是z-index层级上被其他节点覆盖

解决方案

给个z-index的样式