The significance of writing order Reduce browser reflow and improve browser rendering DOM performance The parsing of CSS style to display on the browser screen occurs in steps Priority first - positioning attributes: { display specifies the type of box that an element should generate. position Positioning specifies the positioning type of an element. float Specifies whether the box should float. left top right bottom overflow specifies what happens when content overflows the element's box. clear Clears the stacking order of the z-index set element. content list-style visibility visibility/display} Priority 2 - own attributes: { width height border padding margin background } Priority 3 - Text Style: { font-family font-size font-style Specifies the font style of the text. font-weight font-variant Specifies whether to display text in small caps font color } Priority 4 - Text attributes: { text-align specifies the horizontal alignment of text. vertical-align Sets the vertical alignment of an element. text-wrap specifies the line breaking rules for text. text-transform controls the case of text. text-indent specifies the indentation of the first line of a text block. text-decoration Specifies decorations to add to text. letter-spacing sets the character spacing. word-spacing sets the word spacing. white-space Specifies how whitespace within an element is handled. text-overflow specifies what happens when text overflows the containing element. } Priority 5 - New attributes added in CC3: { box-shadow adds one or more shadows to a box. cursor Specifies the type (shape) of cursor to be displayed. border-radius background:linear-gradient transform... Applies a 2D or 3D transformation to an element. } CSS code naming conventions
CSS Code Notes
Summarize This is the end of this article about CSS style writing order and naming standards. For more relevant CSS writing order command standards, please search 123WORDPRESS.COM’s previous articles or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future! |
<<: Explanation of nginx load balancing and reverse proxy
Preface: In MySQL, the system supports many chara...
1. Download Download mysql-5.7.19-linux-glibc2.12...
vue-infinite-scroll Install npm install vue-infin...
Achieve results html <div class="containe...
1. Framework A browser document window can only d...
Table of contents Install Configuration Common Mi...
Moreover, an article website built with a blog pro...
Table of contents Preface Code Implementation Ide...
Using the Docker run command docker run -d -p 920...
Without further ado, I will post the code for you...
Global Object All modules can be called global: r...
Copy code The code is as follows: <!-- Prevent...
1. Update the yum source The PostgreSQL version o...
Copy code The code is as follows: <html> &l...
The same server simulates the master-slave synchr...