资源描述
CSS2.0用户手册中英文对照版
——该手册基于CSS 2.1规范
为了更好的了解网页浏览器是如何通过CSS显示页面,请查阅【盒模型】这篇文章。
当中有“注:”的是翻译者做的注释。
必须知道的清单
1. margin
2. padding
3. border
4. background-color
5. color
6. font-family
7. font-size
8. float
完整列表
1. azimuth
使得用户能感知一个声音的特定水平方向(注:有可能和elevation结合使用,为视力障碍的人准备的)。
2. background
设定background-color, background-image, background-repeat, background-attachment 和 background-position的缩写。
a) background-attachment 设置在浏览器窗口中的背景图片是滚动还是固定的
b) background-color 设置一个元素的背景色
c) background-image 设置一个元素的背景图片
d) background-position 设置背景图片初始位置
e) background-repeat 设置背景图片是否重复,以及怎样重复
3. border
设置border-width, border-style 和所有四个边框的border-color的缩写。
a) border-bottom 设置border-bottom-width, border-bottom-style 和 border-bottom-color的缩写。
i. border-bottom-color 设置元素下边框的颜色
ii. border-bottom-style 设置元素下边框的线条样式
iii. border-bottom-width 设置元素下边框的宽度
b) border-collapse 设置表格单元格是拥有各自的边框,还是共用一个边框
c) border-color 设置元素四个边框的颜色
i. border-left 设置border-left-width, border-left-style 和 border-left-color的缩写
ii. border-left-color 设置元素左边框的颜色
iii. border-left-style 设置元素左边框的线条样式
iv. border-left-width 设置元素左边框的宽度
d) border-right 设置border-right-width, border-right-style 和 border-right-color的缩写
i. border-right-color 设置元素右边框的颜色
ii. border-right-style 设置元素右边框的线条样式
iii. border-right-width 设置元素右边框的宽度
e) border-spacing 设置两个单元格之间的距离
f) border-style 设置元素四个边框的线条样式
g) border-top 设置border-top-width, border-top-style 和 border-top-color的缩写
i. border-top-color 设置元素上边框的颜色
ii. border-top-style 设置元素上边框的线条样式
iii. border-top-width 设置元素上边框的宽度
h) border-width 设置元素四个边框的宽度
4. bottom 与position属性联用,定位元素外部的标准溢出
5. caption-side 设置表格标题显示在表格上面还是下面
6. clear 用来阻止元素贴在浮动元素周围
7. clip 设置元素的显示区域(注:区域之外的将透明)
8. color 设置一个元素文本内容的前景色(注:一般是指的文字颜色)
9. content
用于在元素前面或者后面插入内容
10. counter-increment
由content属性中的函数 counter()和counters()确定,用于增加计数器的计数
11. counter-reset
由content属性中的函数 counter()和counters()确定,用于将计数器的计数设置成特殊的值
12. cue
设置 cue-before 和 cue-after的缩写
13. cue-after
用于在一个元素后播放一个声音,以便能界定它(注:盲人比较常用的功能吧)
14. cue-before
用于在一个元素前播放一个声音,以便能界定它(注:盲人比较常用的功能吧)
15. cursor
为指针设备设置默认的样式(注:一般是指设置鼠标样式)
16. direction
设置文本的书写方向(从左到右或者从右到左)
17. display
强制转化一个元素的默认布局行为
18. elevation
使得用户能感知一个声音的特定垂直方向(注:有可能和azimuth结合使用,为视力障碍的人准备的)
19. empty-cells
设置空的单元格是否可见
20. float
使得元素向左或向右浮动
21. font
设置font-style, font-variant, font-weight, font-size, line-height 和font-family的缩写
a) font-family 设置一个有优先权的字体列表,用来显示文本
b) font-size 设置字体大小
c) font-style 用来设置字体样式,如设置它为斜体
d) font-variant 设置文字是否显示小的首字母
e) font-weight 设置字体的粗细
22. height
设置呈现元素的矩形的高度
23. left 与position属性联用,定位元素外部的标准溢出
24. letter-spacing
设置字之前的距离
25. line-height
用于改变行高
26. list-style
设置list-style-type, list-style-position 和/或 list-style-image的属性(注:原文是and/or )
a) list-style-image 设置列表样式图片标记
b) list-style-position 设置列表标记 (小标记, 数字, 图片等等) 应该显示在由列表条目所创建的矩形里面还是外面
c) list-style-type 设置列表标记的样式
27. margin
设置 margin-top, margin-right, margin-bottom 和/或 margin-left的缩写
a) margin-bottom 设置一个元素下边框和元素外边缘之间的宽度(边框并不是元素外边缘,只有当Margin属性为0时两者才重叠)
b) margin-left 设置一个元素左边框和元素外边缘之间的宽度
c) margin-right 设置一个元素右边框和元素外边缘之间的宽度
d) margin-top 设置一个元素上边框和元素外边缘之间的宽度
28. max-height
设置元素的最大高度
29. max-width
设置元素的最大宽度
30. min-height
设置元素最小高度
31. min-width
设置元素最小宽度
32. orphans
设置打印网页时一个段落必须至少在页底留下多少行
33. outline
设置 outline-width, outline-style 和 outline-color的缩写方案
34. outline-color
设置元素轮廓的线条颜色
35. outline-style
设置元素轮廓的线条样式
36. outline-width
设置元素轮廓的线条宽度
37. overflow
设置当一个块状元素的内容大于父元素,该元素是否被修剪
38. padding
设置padding-top, padding-right,padding-bottom 和/或 padding-left的缩写方案
a) padding-bottom 设置元素内容到元素下边框之间的宽度
b) padding-left 设置元素内容到元素左边框之间的宽度
c) padding-right 设置元素内容到元素右边框之间的宽度
d) padding-top 设置元素内容到元素上边框之间的宽度
39. page-break-after
设置当网页打印的时候在元素之后分页
40. page-break-before
设置当网页打印的时候在元素之前分页
41. page-break-inside
设置当网页打印的时候在元素之中分页
42. pause
设置pause-before 和 pause-after的缩写
a) pause-after 设置一个在读完一个元素的内容之后的暂停
b) pause-before 设置一个在读完一个元素的内容之前的暂停
43. pitch
设置语音的一般定调(频率)
44. pitch-range
设置在一般的定调里面如何变调
45. play-during
设置当一个元素的内容被读出来的时候,一个声音是否作为背景音乐的播放
46. position
设置元素在网页以何种方式定位
47. quotes
为每个等级的引用设置成对的引用记号
48. richness
设置声音的饱和度和亮度
49. right
与position属性联用,定位元素外部的标准溢出
50. speak
用来开启或关闭文本语音处理,或设置指定为本一次拼出一个字母
51. speak-header
设置是否要在每个单元格前读表格标题
52. speak-numeral
控制如何读数字
53. speak-punctuation
设置如何读标点
54. speech-rate
设置语速
55. stress
控制因为重音标记而变形的数量(注:说的是英语发音里面的)
56. table-layout
设置怎样的表格列宽度是适合的
57. text-align
为块状元素设置内联内容(文本和图片)的对其方式
58. text-decoration
设置文本采用的装饰效果
59. text-indent
设置文本的第一行的缩进
60. text-transform
控制文本的大写效果
61. top
与position属性联用,定位元素外部的标准溢出
62. unicode-bidi
设置如何显示双向文本(注:两种读的方式都可以的文本)
63. vertical-align
设置在内联元素和表格单元格中内容的垂直定位
64. visibility
设置元素是否可见
65. voice-family
音谱名(注:voice family 和字体类似)的优先清单
66. volume
设置一般的音量
67. white-space
设置在元素怎么处理空白 (空格, 制表符和强制换行)
68. widows
设置打印网页时一个段落必须至少在页眉留下多少行
69. width
设置显示元素的矩形的宽度
70. word-spacing
设置在单词之前的距离(注:在中文里面与letter-spacing类似)
71. z-index
设置当几个元素必须显示在同一个区域时他们层叠的秩序 。
展开阅读全文