The difference between border and outline

WBOY
Release: 2016-07-06 13:28:23
Original
1379 people have browsed it

The difference between border and outline:

Border supports box-sizing: border-box. When there is a border, the border is added and processed according to the previous margin

outline does not support box-sizing: border-box; handle the margin first, then add the outline, which is somewhat similar to scaling (transform: scale(1.2);) regardless of the size of the outline, the style does not affect the layout.

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