If you use CSS don't forget to write DOCTYPE, document type definition. Standard box model ![]() 1. Element classification <br />Block-level elements (block) Div+css (DIV and CSS are both containers) <p> is a paragraph tag, a block-level element. Inline elements Span does not respond to box model properties. 2. Standard flow <br />The arrangement of labels. 3. Box model <br />Put the element into the box with a margin of 4 (take the maximum value when two are together, do not add the sum) Padding 4 content areas (width and height) Border 4 Styles can be written together. 4. Float <br />Depart from the standard flow. 5. Positioning <br />Absolute: absolute deviates from the standard flow and is absolute to the box that contains the element. Relative: relative to the original position but not out of the standard flow 6. Setting the hyperlink style a:link is the initial state of the hyperlink a:hover is the state of hovering when the mouse is placed on it a:active is when the mouse is clicked a: visited is the situation after visiting 7. CSS hack (For more information about CSS hack, please visit: http://baike.baidu.com/view/1119452.htm) *margin-top:10px!important; /*Only IE678 recognizes this rule*/ _margin is only recognized by IE6. Other core browsers can recognize!Important (increase priority) Solve the IE gap problem: Margin-top: -2em Make the outer border two e units upward 8. These three attributes must be present when loading the cut image background-image background-position background-repeat: /*no repeat*/ 9. * Space represents the settings for all elements |
<<: Implementation of Element-ui Layout (Row and Col components)
>>: Add ?v= version number after js or css to prevent browser caching
When checking the slow query, I found that the ti...
1. at is configured to write "This is a at t...
How to install PHP7 on Linux? 1. Install dependen...
This article shares the specific code of Vue2.0 t...
This is the effect of the Element UI loading comp...
A few days ago, a colleague asked me a question a...
The first step is to create a mysql container doc...
Text Shadow text-shadow: horizontal offset vertic...
Introduction to MQTT MQTT (Message Queuing Teleme...
Table of contents 1. What is dynamic typing? 2. D...
Preface In the springboot configuration file, the...
MYSQL 5.6 Deployment and monitoring of slave repl...
Table of contents Preface 1. What is 2. How to us...
All tags must be lowercase In XHTML, all tags must...
Transaction isolation level settings set global t...