The difference between inline elements and block-level elements in HTML: In the standard document flow, block-level elements have the following characteristics: ①Always start on a new line and occupy a whole line; ②Height, line height, margins and padding can all be controlled; ③Bandwidth is always the same as the browser width, regardless of the content; ④It can accommodate inline elements and other block elements Characteristics of inline elements: ① and other elements are on one line; ②Height, line height, margins and padding can be changed; ③The width is only related to the content; ④Inline elements can only contain text or other inline elements. The width and height cannot be set. The width increases with the content, and the height changes with the font size. Inline elements can set outer borders, but the outer borders do not work on the top and bottom, but only on the left and right. Inline borders can also be set, but in IE6, the inner borders do not work on the top and bottom, but only on the left and right. Common block-level elements and inline elements: •Block element 1. * address • Inline element The above article on essential knowledge for web development interviews and written tests (must read) is all the content that the editor shares with you. I hope it can give you a reference, and I also hope that you will support 123WORDPRESS.COM. Original URL: http://www.cnblogs.com/yzybc/p/5643554.html |
<<: Advantages of INSERT INTO SET in MySQL
>>: Implementation code for infinite scrolling with n container elements
1. Add the isolation marker: ip netns add fd 2. P...
(1) Experimental environment youxi1 192.168.5.101...
At the beginning of this article, I would like to ...
This article shares the specific code of JavaScri...
Background: During the development process, we of...
Table of contents 1. Project requirements 2. Docu...
01. VMware Workstation Pro 15 Download Download: ...
1. Create a centos7.6 system and optimize the sys...
Table of contents Preface: Specific operations St...
Table of contents What is pre-analysis? The diffe...
Table of contents How to deploy MySQL service usi...
Data Sheet /* Navicat SQLite Data Transfer Source...
Preface The most common task after we install a L...
Table of contents Product Requirements Ideas Prob...
1. After creating the web project, you now need t...