Home > Web Front-end > CSS Tutorial > Examples of common abbreviations in CSS

Examples of common abbreviations in CSS

怪我咯
Release: 2017-05-07 11:41:47
Original
1559 people have browsed it

1. The background abbreviation attribute sets all background attributes in one declaration:

background-color
background-image
background-repeat
background-attachment
background-position
Copy after login

For example:

background: #444444 urlimage.png) no-repeat fixed top;
Copy after login

2 . The border shorthand property sets all border properties in one declaration:

border-width
border-style
border-color
Copy after login

For example:

border:1px solid red;
Copy after login

3. The font shorthand property sets all font properties in one declaration:

font-style
font-variant
font-weight
font-size/line-height
font-family
Copy after login

For example:

font:italic bold 12px/20px arial,sans-serif;
Copy after login

4. The list-style shorthand attribute sets all list attributes in one statement:

list-style-type
list-style-position
list-style-image
Copy after login

For example:

list-style:square inside url('/images/images.gif');
Copy after login

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!

Related labels:
css
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template