CSS(Cascading Style Sheet层叠式样式表)
目前推荐遵循的是W3C于1998年5月12日推出的CSS2。CSS标准建立的目的是以CSS进行网页布局,控制网页的表现。CSS标准布局与XHTML结构语言相结合,可以实现表现与结构相分离,提高网站的使用性和可维护性。
关键字 |
释义 |
@import |
导入 |
selector |
选择器 |
property |
属性 |
font-size |
文字大小 |
font-family |
文字字体 |
font-weight:bold |
粗体 |
color |
文字颜色 |
a:link |
带链接的 |
a:hover |
当鼠标滑到链接上 |
a:active |
当链接被激活 |
a:visited |
被访问过的链接 |
text-decoration |
字体装饰 |
underline |
下划线 |
overline |
上划线 |
line-through |
中划线 |
none |
无 |
background-color |
背景颜色 |
background-image |
背景图片 |
background-repeat |
重复方式 |
background-position |
重复定位 |
background-attachment |
检测背景是否随内容滚动 |
padding |
内边距 |
margin |
外边距 |
position |
定位 |
border |
边框 |
solid |
实线边框 |
dashed |
虚线边框 |
relative |
相对 |
absolute |
绝对 |
visibility |
可见性 |
block |
块 |
display |
显示 |
overflow |
溢出 |
float |
浮动 |
clear |
清除 |
list-style |
无序列表的样式 |
line-height |
行高 |
letter-spacing |
字距 |
word-spacing |
词距 |
!important |
优先声明,IE6不支持此属性 |
cursor |
光标状态属性 |
pointer |
手 |
crosshair |
十字 |
help |
问号 |
wait |
沙漏 |
filteralpha(opacity=50);opacity:0.5; |
透明度滤镜 |