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
Problem background: When using docker to deploy t...
nginx traffic control Rate-limiting is a very use...
We will use CSS3 animated transitions to create a...
In the previous article https://www.jb51.net/arti...
Basic Introduction Features Flexbox is a CSS disp...
We all know that the commonly used positioning me...
Table of contents Development Environment Game en...
Win10 installation (skip if already installed) Fo...
The elements in an HTML document are arranged one...
VMWare (Virtual Machine ware) is a "virtual ...
Table of contents 1. Run workflow 2. Basic comman...
Professional web design is complex and time-consu...
A process is a program code that runs in the CPU ...
Official website address: https://www.mysql.com/ ...
Table of contents 1. Insert the queried results 2...