CSS Syntax
Format
Property: Value: Property, Value 1: Property 1. ..... ;
Properties and values using the colon ":"
Unit
Color:#rgb #8fa #aaffaa Red Green
Size:em 2em px pt% pc cm mm in
URL(url)
Comments/ * ... */ in which you do not include comments
four ways to set up CSS
Inline style sheet: Inline with the style attribute in HTML element tags (each HTML tag can be styled)
Embedded style sheet: html <style> tag jiang CSS embedded in HTML (You can control all styles of the current page)
External style Sheets: Define styles separately in a document with a . css suffix and link to HTML in HTML via the link element used in the.
Input style sheet: You can enter a style file into another style library file, or enter a style file into the <style> element.
Their priority level: inline is higher than others, and the other is related to the loading order.
This article is from "Xiao Liu _blog" blog, please be sure to keep this source http://liuyafang.blog.51cto.com/8837978/1412578