1. The background abbreviation attribute sets all background attributes in one declaration:
background-color background-image background-repeat background-attachment background-position
For example:
background: #444444 urlimage.png) no-repeat fixed top;
2 . The border shorthand property sets all border properties in one declaration:
border-width border-style border-color
For example:
border:1px solid red;
3. The font shorthand property sets all font properties in one declaration:
font-style font-variant font-weight font-size/line-height font-family
For example:
font:italic bold 12px/20px arial,sans-serif;
4. The list-style shorthand attribute sets all list attributes in one statement:
list-style-type list-style-position list-style-image
For example:
list-style:square inside url('/images/images.gif');
The above is the detailed content of Examples of common abbreviations in CSS. For more information, please follow other related articles on the PHP Chinese website!