Home  >  Article  >  Web Front-end  >  谷歌调试工具选取元素选择不到页面的具体元素问题_html/css_WEB-ITnose

谷歌调试工具选取元素选择不到页面的具体元素问题_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:01:251216browse

z-index的问题

document的默认值是0.

一旦出现这种问题,检查下是否对大背景设置了z-index:-1;

如果设置了这个,那么所有的被设元素的内容都会在document之下,选取不到。包括不会出现链接点击、文字选取、hover等效果。


所以解决这个问题的方法就是把大背景的z-index:-1;去掉即可。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn