Web-CSS Overview_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:40:17
Original
1133 people have browsed it

1. Concept: It is a computer language used to express file styles such as HTML (an application of Standard Generalized Markup Language) or XML (a subset of Standard Generalized Markup Language
).
2. Features: 1. Separate web content and style
2. Reduce the use of graphic files.
3. Centrally manage style information.
4. Share style settings.
5. Classify styles and use them.
3. Selector priority: ID selector > class selector > HTML tag selector (body)
4. Core content:

1. Standard flow (arrangement): The standard flow is the arrangement of tags.

For example,
red

blue


It is displayed on the page that the first line is "red" and the second line is "blue"
It is displayed on the page The order is consistent with the order in the code, which means it conforms to the standard flow
If you add floating or set attributes to the above tags, it may break away from the standard flow and display blue in front and red in the back
For example < ;div style="float:right">red

blue


2. Box model: often used in web design A mental model used by CSS technology.

                                                                                                                                                                               requirements), box floating and positioning are used.

Float left (float: trun;), float right (float: left;), so that subsequent boxes are not affected by the previous floating box (clear: both;); positioning (position: static (static), relative ( Relative), absolute (absolute), fixed (fixed))

4. Block-level elements (this row has a background color), inline elements (the content in this row has a background color) 1. Block-level elements: such as:

2. Inline elements: such as:
As shown below:
Five, CSS attributes:
CSS attributes are too much, here is a link (), and then check it when you use it.

Copyright Statement: This article is an original article by the blogger and may not be reproduced without the blogger's permission.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template