在网页设计中常用的css属性包括:字体 Font、文本 Text、背景 Background、定位 Positioning、尺寸 Dimensions、布局 Layout、外补丁 Margins、轮廓 Outlines、内容 Generated Content、边框 border、内补丁 Paddings、列表 Lists 、表格 table、打印 Printing、声音 Aural 等其它属性!
下面是以下对在网页设计时碰到的常用16种属性的详细介绍:
一、字体 Font
字体属性包括:color属性;
font-family 属性;
font-size 属性;
font-size-adjust 属性;
font-stretch 属性;
font-style 属性;
font-weight 属性;
text-decoration 属性;
text-underline-position 属性;
text-shadow 属性;
font-variant 属性;
text-transform 属性;
line-height 属性;
letter-spacing 属性;
word-spacing 属性;
二、文本 Text
文本属性包括:
text-indent 属性;
text-overflow 属性;
vertical-align 属性;
text-align 属性;
layout-flow 属性;
writing-mode 属性;
direction 属性;
unicode-bidi 属性;
word-break 属性;
line-break 属性;
white-space 属性;
word-wrap 属性;
text-autospace 属性;
text-kashida-space 属性;
text-justify 属性;
ruby-align 属性;
ruby-overhang 属性;
ruby-position 属性;
ime-mode 属性;
layout-grid 属性;
layout-grid-char 属性;
layout-grid-char-spacing 属性;
layout-grid-line 属性;
layout-grid-mode 属性;
layout-grid-type 属性;
三、背景 Background
背景属性包括:
background 属性;
background-attachment 属性;
background-color 属性;
background-image 属性;
background-position 属性;
background-positionX 属性;
background-positionY 属性;
background-repeat 属性;
layer-background-color 属性;
layer-background-image 属性;
四、定位 Positioning
定位属性包括:
position 属性;
z-index 属性;
top 属性;
right 属性;
bottom 属性;
left 属性;
五、尺寸 Dimensions
尺寸属性包括:
height 属性;
max-height 属性;
min-height 属性;
width 属性;
max-width 属性;
min-width 属性;
六、布局 Layout
布局属性包括:
clear 属性;
float 属性;
clip 属性;
overflow 属性;
overflow-x 属性;
overflow-y 属性;
display 属性;
visibility 属性;
七、外补丁 Margins
外补丁属性包括:
margin 属性;
margin-top 属性;
margin-right 属性;
margin-bottom 属性;
margin-left 属性;
八、轮廓 Outlines
轮廓属性包括:
outline 属性;
outline-color 属性;
outline-style 属性;
outline-width 属性;
九、边框 border
边框属性包括:
border 属性;
border-color 属性;
border-style 属性;
border-width 属性;
border-top 属性;
border-top-color 属性;
border-top-style 属性;
border-top-width 属性;
border-right 属性;
border-right-color 属性;
border-right-style 属性;
border-right-width 属性;
border-bottom 属性;
border-bottom-color 属性;
border-bottom-style 属性;
border-bottom-width 属性;
border-left 属性;
border-left-color 属性;
border-left-style 属性;
border-left-width 属性;
十、内容 Generated Content
内容属性包括:
include-source 属性;
quotes 属性;
content 属性;
counter-increment 属性;
counter-reset 属性;
十一、内补丁 Paddings
内补丁属性包括:
padding 属性;
padding-top 属性;
padding-right 属性;
padding-bottom 属性;
padding-left 属性;
十二、列表 Lists
列表属性包括:
list-style 属性;
list-style-image 属性;
list-style-position 属性;
list-style-type 属性;
marker-offset 属性;
十三、表格 table
表格属性包括:
border-collapse 属性;
border-spacing 属性;
caption-side 属性;
empty-cells 属性;
table-layout 属性;
speak-header 属性;
滚动条 Scrollbar
滚动条属性包括:
scrollbar-3d-light-color 属性;
scrollbar-highlight-color 属性;
scrollbar-face-color 属性;
scrollbar-arrow-color 属性;
scrollbar-shadow-color 属性;
scrollbar-dark-shadow-color 属性;
scrollbar-base-color 属性;
十四、打印 Printing
打印属性包括:
page 属性;
page-break-after 属性;
page-break-before 属性;
page-break-inside 属性;
marks 属性;
orphans 属性;
size 属性;
widows 属性;
十五、声音 Aural
声音属性包括:
voice-family 属性;
volume 属性;
elevation 属性;
azimuth 属性;
stress 属性;
richness 属性;
speech-rate 属性;
cue 属性;
cue-after 属性;
cue-before 属性;
pause 属性;
pause-after 属性;
pause-before 属性;
pitch 属性;
pitch-range 属性;
play-during 属性;
speak 属性;
speak-numeral 属性;
speak-punctuation 属性;
十六、其它 Classification
另外还包扩
cursor 属性;
behavior 属性;
filter 属性;
zoom 属性等不常用属性!