Home > Web Front-end > HTML Tutorial > Organize the list of commonly used CSS properties in W3CSchool_html/css_WEB-ITnose

Organize the list of commonly used CSS properties in W3CSchool_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:50:37
Original
1259 people have browsed it

The recent teaching summarizes commonly used CSS properties for students to facilitate learning and query. I just posted it and shared it with everyone, O(∩_∩)O.

Excerpted from: http://www.w3cschool.com.cn/

The number in the rightmost column of the table identifies the minimum supported CSS version.

Directory:

01. CSS background properties (Background)

02. CSS border properties (Border and Outline)

03. CSS text attribute (Text)

04. CSS font attribute (Font)

05. CSS margin attribute (Margin)

06 . CSS padding properties (Padding)

07. CSS list properties (List)

08. CSS size properties (Dimension)

09. CSS positioning properties (Positioning )

10. CSS table properties (Table)

01. CSS background properties (Background) CSS background properties (Background) background
属性 描述 CSS
background 在一个声明中设置所有的背景插件 1
background-attachment 设置背景图像是否固定或者随着页面的其余部分滚动 1
background-color 设置元素的背景颜色 1
background-image 设置元素的背景图像 1
background-position 设置背景图像的开始位置 1
background-repeat 设置是否及如何重复背景图像 1
Properties
Description CSS
Set all background plugins in one statement 1
background-attachment Set whether the background image is fixed or scrolls with the rest of the page 1
background-color Set the background color of the element 1
background-image Set the background image of the element 1
background-position Set the starting position of the background image 1
background-repeat Set whether and how to repeat the background Image 1

02. CSS border properties (Border and Outline) CSS border properties (Border and Outline) tr> 2
属性 描述 CSS
border 在一个声明中设置所有的边框属性 1
border-bottom 在一个声明中设置所有的下边框属性 1
border-bottom-color 设置下边框的颜色 2
border-bottom-style 设置下边框的样式 2
border-bottom-width 设置下边框的宽度 1
border-color 设置四条边框的颜色 1
border-left 在一个声明中设置所有的左边框属性 1
border-left-color 设置左边框的颜色 2
border-left-style 设置左边框的样式 2
border-left-width 设置左边框的宽度 1
border-right 在一个声明中设置所有右边框的属性 1
border-right-color 设置右边框的颜色 2
border-right-style 设置右边框的样式 2
border-right-width 设置右边框的宽度 1
border-style 设置四条边框的样式 1
border-top 在一个声明中设置所有上边框的属性 1
border-top-color 设置上边框的颜色 2
border-top-style 设置上边框的样式 2
border-top-width 设置上边框的宽度 1
border-width 设置四条边框的宽度 1
outline 在一个声明中设置所有的轮廓属性 2
outline-color 设置轮廓的颜色 2
outline-style 设置轮廓的样式 2
outline-width 设置轮廓的宽度 2
Property

Description

CSS

border Set all border properties in one statement 1
border-bottom
属性 描述 CSS
color 设置文本的颜色 1
direction 规定文本的方向/书写方向 2
letter-spacing 设置字符间距 1
line-height 设置行高 1
text-align 规定文本的水平对齐方式 1
text-decoration 规定添加到文本的装饰效果 1
text-indent 规定文本块首行的缩进 1
text-shadow 规定添加到文本的阴影效果 2
text-transform 控制文本的大小写 1
unicode-bidi 设置文本方向 2
white-space 规定如何处理元素中的空白 1
word-spacing 设置单词间距 1
td>
Set all bottom border properties in one statement 1
border-bottom-color td> Set the color of the bottom border 2
border-bottom-style Set the style of the bottom border 2
border-bottom-width Set the width of the bottom border 1
border-color Set the color of the four borders 1
border-left Set all left border properties in one statement 1
border-left-color Set the color of the left border 2
border-left-style Set the style of the left border 2
border-left-width Set the width of the left border 1
border-right Set all right border properties in one statement 1
border -right-color Set the color of the right border 2
border-right-style Set the style of the right border 2
border-right-width Set the width of the right border 1
border-style Set four borders Style 1
border-top Set all top border properties in one statement 1
border-top-color Set the color of the top border
border-top-style Set the style of the top border 2 td>
border-top-width Set the width of the top border 1
border-width Set the width of the four borders 1
outline Set all outline properties in one statement 2
outline- color Set the color of the outline 2
outline-style Set the style of the outline 2
outline-width Set the width of the outline 2
03. CSS text property (Text) CSS text Attribute(Text)
Attribute Description CSS
color Set the color of text 1
direction Specifies the direction/writing direction of the text 2
letter-spacing Set character spacing 1
line-height td> Set line height 1
text-align Specify the level of text Alignment 1
text-decoration Specifies the decorative effect added to the text 1
text-indent Specifies the indentation of the first line of the text block 1
text-shadow Specifies the shadow effect added to the text 2
text-transform Control the case of text 1
unicode-bidi Set text direction 2
white-space Specifies how to handle whitespace in elements 1
word-spacing td> Set word spacing 1

04. CSS Font Properties (Font) CSS Font Properties (Font) td>
属性 描述 CSS
font 在一个声明中设置所有字体属性 1
font-family 规定文本的字体系列 1
font-size 规定文本的字体尺寸 1
font-size-adjust 为元素规定aspect值 2
font-stretch 收缩或拉伸当前的字体系列 2
font-style 规定文本的字体压实 1
font-variant 规定文本的字体样式 1
font-weight 规定字体的粗细 1
Properties

td>

Description

CSS

font Set all font properties in one statement 1
font-family
属性 描述 CSS
margin 在一个声明中设置所有的外边距属性 1
margin-bottom 设置元素的下外边距 1
margin-left 设置元素的左外边距 1
margin-right 设置元素的右外边距 1
margin-top 设置元素的上外边距 1
Specifies the font family of the text 1

font-size

Specifies the font size of the text1

font-size-adjust

Specify aspect value for element 2
font-stretch Shrink or stretch the current font family 2
属性 描述 CSS
padding 在一个声明中设置所有的内边距属性 1
padding-bottom 设置元素的下内边距 1
padding-left 设置元素的左内边距 1
padding-right 设置元素的右内边距 1
padding-top 设置元素的上内边距 1
font-style

Specifies the font compaction of text 1
font-variant

Specifies the font style of the text 1
font-weight

Specifies the thickness of the font 1

属性 描述 CSS
list-style 在一个声明中设置所有的列表属性 1
list-style-image 将图像设置为列表项标记 1
list-position 设置列表项标记的放置位置 1
list-style-type 设置列表项标记的类型 1
05. CSS Margin Property (Margin)

CSS Margin Property (Margin)

td> tr>

Property

Description
属性 描述 CSS
height 设置元素高度 1
max-height 设置元素的最大高度 2
max-width 设置元素的最大宽度 2
min-height 设置元素的最小高度 2
min-width 设置元素的最小宽度 2
width 设置元素的宽度 1
CSS
margin Set all margin properties in one declaration 1
margin-bottom Set the element The bottom margin 1
margin-left Set the left margin of the element1
margin-right Set the right margin of the element 1
margin-top Set the top margin of the element 1
06. CSS padding properties (Padding) CSS padding properties (Padding)
Properties Description CSS
padding Set all padding properties in one declaration 1
padding-bottom Set the bottom padding of the element 1
padding-left Set the left padding of the element 1
padding-right Set the right padding of the element 1
padding-top Set the element Top padding 1
07. CSS list properties (List ) CSS list attribute (List)
Property Description CSS
list-style Set all in one statement List properties 1
list-style-image Sets the image as the list item mark 1
list-position Set the placement position of the list item mark 1
list-style-type Set the type of list item tag 1 td>
08. CSS size attribute (Dimension) CSS size attribute (Dimension)
Properties Description CSS
height Set element height 1
max-height td> Set the maximum height of the element 2
max-width Set the element The maximum width 2
min-height Set the minimum height of the element 2
min-width Set the minimum width of the element 2
width Set the width of the element 1

09. CSS Positioning Property (Positioning) CSS Positioning Property (Positioning)
属性 描述 CSS
bottom 设置定位元素下外边距边界与其包含块下边界之间的偏移 2
clear 规定元素的哪一侧不允许其他浮动元素 1
clip 剪裁绝对定位元素 2
cursor 规定要显示的光标类型(形状) 2
display 规定元素应该生成的框的类型 1
float 规定框是否应该浮动 1
left 设置定位元素左外边距边界与其包含块左边界之间的偏移 2
overflow 规定当内容溢出元素框时发生的事情 2
position 规定元素定位类型 2
right 设置定位元素右外边距边界与其包含块右边之间的偏移 2
top 设置定位元素上外边距边界与其包含块上边之间的偏移 2
vertical-align 设置元素的垂直对其方式 1
visibility 规定元素是否可见 2
z-index 设置元素的堆叠顺序 2
Property

td>

Description

CSS
bottom
属性 描述 CSS
border-collapse 规定是否合并表格边框 2
border-spacing 规定相邻单元格边框之间的距离 2
caption-side 规定表格标题的位置 2
empty-cells 规定是否显示表格中的空单元格上的边框和背景 2
table-layout 设置用于表格的布局算法 2
Set the offset between the bottom margin boundary of the positioned element and the bottom boundary of its containing block 2
clear

Specifies which side of the element does not allow other floating elements 1
clip

Clipping absolutely positioned elements 2
cursor

Specifies the type of cursor to be displayed (Shape) 2

display

Specifies the type of box that the element should generate 1

float

Specifies whether the box should float 1

left

Set the offset between the left margin edge of the positioned element and the left edge of its containing block 2

overflow

Specifies what happens when content overflows the element box 2

position

Specify element positioning type 2
right Set the offset between the right margin boundary of the positioned element and the right side of its containing block 2
top Set the offset between the upper margin boundary of the positioned element and the upper edge of its containing block 2
vertical-align Set the vertical alignment of elements 1
visibility Specifies whether the element is visible 2
z-index Set the stacking order of elements 2
10. CSS table properties (Table) CSS table properties (Table)
Properties Description CSS
border-collapse Specifies whether to merge table borders 2 td>
border-spacing Specifies the distance between adjacent cell borders 2
caption-side Specifies the position of the table title 2
empty-cells Specifies whether to display borders and backgrounds on empty cells in the table 2
table-layout Set the layout algorithm for tables 2
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