Home >Web Front-end >CSS Tutorial >Summary of the differences between Div CSS absolute and relative_Experience exchange

Summary of the differences between Div CSS absolute and relative_Experience exchange

WBOY
WBOYOriginal
2016-05-16 12:06:391282browse

To explain the relationship between the two in detail, you need to use examples, please look at the examples first:

The following is a quotation fragment:




Div CSS Example, Wayhome's Blog





position :absolute;

top: 5px;

right: 20px;


position: absolute;

left: 20px;

bottom: 10px;




position : absolute;

top: 5px;

left: 5px;



position: relative;

left: 150px;



width : 300px; height: 50px;




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