測試

2011年9月4日 星期日

CSS shorthand property 屬性縮寫

可用的CSS縮寫屬性清單

CSS Shorthand Property
縮寫屬性
backgroundbackground-color
background-position
background-size
background-repeat
background-origin
background-clip
background-attachment
background-image
color | transparent;
x% y% | xpos ypos | left | top | ...;
length | percentage | cover | auto | ...;
repeat | repeat-x | repeat-y | no-repeat;
border-box | contain-box | padding-box;
border-box | contain-box | padding-box;
scroll | fixed;
url('URL') | none;
borderborder-width
border-style
border-color
border-top
border-right
border-bottom
border-left
thin | medium | thick | length;
none | dotted | dashed | solid | ...;
color | transparent;
thin | medium | thick | length;
thin | medium | thick | length;
thin | medium | thick | length;
thin | medium | thick | length;
fontfont-style
font-variant
font-weight
font-size/line-height
font-family
caption
icon
menu
message-box
small-caption
status-bar
normal | italic | oblique;
normal | small-caps;
normal | bold | lighter | 100 | ...;
medium | length | % | normal | ...;
font-family, generic-family name;
caption;
icon;
menu;
message-box;
small-caption;
status-bar;
list-stylelist-style-type
list-style-position
list-style-image
disc | circle | square | decimal | ...;
inside | outside;
none | url('URL');
marginmargin-top
margin-right
margin-bottom
margin-left
auto | length %;
auto | length %;
auto | length %;
auto | length %;
outlineoutline-color
outline-style
outline-width
color | invert;
none | dotted | dashed | solid | ...;
thin | medium | thick | length;
paddingpadding-top
padding-right
padding-bottom
padding-left
length | %;
length | %;
length | %;
length | %;

本篇為整理資料,內容參照:
  • 2007年旗標出版股份有限公司翻譯O'Reilly出版Christopher Schmitt藍雲紋譯《CSS問題解決速查手冊》、
  • w3schools.com 網路資料。

沒有留言: