This article mainly introduces the syntax of the CSS content, has a certain reference value, now share to everyone, the need for friends can refer to
1.css Introduction
You can control the effect of the Web page, including font size, color, font, line spacing, word spacing, background image, positioning, background color
2.css Writing style method
1) Inline style
<b> Default effect </b><b style= "color: #F00;" > Text changes to Red </b>
Note: inline styles write CSS style attributes directly to labels, and tag reads directly into the corresponding effect
Affects only the inline style
2) Internal style
The inner style is written in the head area of the HTML page, and the corresponding object in the body is read to the corresponding effect, and the upper write controls
Only affects the current page p
3) External style
External style CSS as a standalone file, you need to write a line of link code in the head of the HTML page to write the corresponding element in the HTML to invoke the CSS style effect of the external style writing
the writing of 3.CSS grammar
CSS writing is mainly composed of CSS properties and CSS property values.
<b style= "color: #F00;" > Text changes to Red </b>
Style for styles, color for CSS properties, #F00为属性的值, note: with;
b{width:600px;height:60px;}
Curly braces wrap CSS properties with CSS styles