常用css缩写

颜色:16进制的色彩值,如果每两位的值相同,可以缩写一半 #0000 #000 #336699 #369

盒尺寸:

margin padding

margin:top right bottom left margin:1em 0 2em 0.5em;


边框:

border:width style color border:1px solid #000

背景:

background:color image repeat attachment position

background:#f00 url(background.gif) no-repeat fixed 0 0;

字体:

font-style:italic;

font-variants:small-caps;

font-weight:bold;

font-size:1em;

line-height:140%;

font-family:"Lucida Grande",sans-serif;

如果要缩写字体定义,至少要定义font-size和font-family两个值


列表:

list-style:type position image list-style:square inside url(image.gif)

原文地址:https://www.cnblogs.com/Knuth/p/2390628.html