Experts please come in: What should I do if the space occupied by position:relative is blank? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:16:07
Original
2205 people have browsed it


This way the div layer is removed, but the blank space is still there Here, what should I do?


Reply to discussion (solution)

Gates uses this display: none

This... position: relative just changes the visual position
does not change its position in the document flow

You can set position: relative in its parent container, and then set position:absolute

using margin


Just delete it

Dear experts, display:none sounds like it is not displayed, so what do I want it for?

Use margin to follow me Pretty much what I thought

Just follow the steps on the 2nd floor and it should be fine.

You bunch of cheats

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