1, the CSS code shorthand
CSS abbreviation syntax, to the novice has certain help, the veteran will not have to look.
1.1:0px does not need units, direct: margin:0
1.2: Box model abbreviation, syntax is margin: upper right down left; Can even be abbreviated to margin: Upper (right left), of course, the right left value should be the same
The last item of the 1.3:css property ";" Number omitted. (Not recommended ^_^)
1.4: Font width normal with 400 instead, bold with 700 instead.
1.5:16 color value, if the value of each two digits is the same, you can abbreviate half, for example: #000000可以缩写为 #000; #0044DD可以缩写为 #04d;
The abbreviation for the 1.6:border border, syntax is border:width style color, similar to boder:1px solid red;
1.7: The initials of the background background, the syntax is the color image repeat attachment position. Similar: background: #f00 URL (background.gif) no-repeat fixed 0 0 (Why do I never write fixed?)
1.8: Font abbreviations, similar to font:italic small-caps bold 1em/140% "SimSun", Sans-serif, can be omitted to the simplest font:12px "SimSun".
1.9:list's attribute abbreviation, syntax list-style:square inside URL (image.gif), but generally we do not use.
1.0: Want to get together 10, it's really hard. Just delete the useless newline and space.