As a news publishing system, div + CSS is exposed. It is a webpage layout method, which is different from the table Positioning Method in the traditional HTML webpage design language, it truly achieves the separation of W3C content and performance.
CSS (Cascading Style Sheet) is a set of format setting rules used to control the appearance of web pages. By setting the page format with CSS Styles, you can separate the content and representation of the page. The page content is stored in the HTML document, while the CSS rules used to define the representation are stored in another file or a part of the HTML document, usually the file header. Separating content from presentation not only makes it easier to maintain the site's appearance, but also makes HTML documentsCodeMore concise, shortening the loading time of the browser.
Core Content of CSS:
1. Standard stream (sorting order of HTML tags)
2. Box Model
3. Float)
4. Position)
Note:
The use of multiple styles is limited to class selectors, because each ID selector in a webpage is unique.
(Block-level element (DIV); line element (span itself ). Sometimes block-level elements can be converted into intra-row elements to achieve the desired layout effect)
With the continuous understanding of them, there will be more content to accumulate...