zjffun blog

Chrome DevTools 选择 pointer-events 为 none 的元素

更新于 写于 前端

Chrome DevTools 默认不会选择 pointer-events: none 的元素,可以通过按住 Shift 选择。或者通过 Shift+Ctrl+C 选择。

另外可以通过设置 pointer-events: none 让一个元素不被审查,就像这个问题

英文原文:

You can enter Inspect Element mode and hold Shift to ignore pointer events to select elements with pointer-events: none.

Or use shift+ctrl+c to select elements with pointer-events: none.

See: 371120 - Right Click -> Inspect Element will take you to invisible elements if they overlay the screen - chromium 544896 - Elements with pointer-events: none can't be targeted for inspect with context menu "Inspect" or DevTools UI - chromium