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

WBOY
Release: 2016-06-24 12:01:25
Original
1269 people have browsed it

z-index的问题

document的默认值是0.

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

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


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

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!