Home > Web Front-end > HTML Tutorial > div covering problem_html/css_WEB-ITnose

div covering problem_html/css_WEB-ITnose

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-24 11:38:50
Original
1088 people have browsed it

There are two DIVs "A" and "B". Among them, "A" DIV is nested in another DIV "C". A and B are positioned relatively, and C is positioned absolutely. Question: Without changing the positioning, how can I make part of C cover B
This is probably what it looks like. z-index has been used but it has no effect. A: Z-INDEX=99 B: Z-INDEX=44 is useless. Ask God for a solution.


Reply to discussion (solution)

C Why use absolute positioning? How to set it up? Set z-index to C and try again

Also set position: relative; and z-index: ;

The problem has been solved. It's all the fault of relative positioning.

Related labels:
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template