常用的CSS样式

网页设计中常用的CSS属性如下: 文字或元素的颜色 color 背景颜色 background-color 背景图像 background-image 字体 font-family 文字大小 font-size 列表样式 list 鼠标样式 cursor 边框样式 border 内补白 padding 外边距 margin 边框宽度 : border-width 上边宽度 : border-top-width 左边宽度 : border-left-width 右边宽度 : border-right-width 底边宽度 : border-bottom-width 边框颜色 : border-color 上边颜色 : border-top-color 边框样式 : border-style : double; 可替换 dashed; dotted; none; 上边样式 : border-top-style 左边样式 : border-left-style 右边样式 : border-right-style 底边样式 : border-bottom-style 整体宽度 : width 整体高度 : height 溢出选项 : overflow : visible; 可替换 hidden; scroll; auto; 内侧边距 : padding 上内边距 : padding-top 外侧边距 : margin 上外边距 : margin-top 文字字体 : font-family 文字大小 : font-size 文字粗细 : font-weight : bold; 文字样式 : font-style 文字变量 : line-height 清除属性 : clear : left; 可替换 right; both; none; 浮动属性 : float : left; 可替换 right; none; 水平排列 : text-align : left; 可替换 right; center; justify; 文本修饰 : text-decoration : underline; 可替换 overline; underline overline; line-through; blink; 文本缩进 : text-indent 文字间距 : letter-spacing 字母间距 : word-spacing 文本转换 : text-transform : capitalize; 可替换 lowercase; uppercase; 垂直排列 : vertical-align : baseline; 可替换 top; middle; bottom; text-top; text-bottom; super; sub; 3em; 30%; 背景图片 : background-image 背景拉伸 : background-repeat : repeat; 可替换 repeat-x; repeat-y; no-repeat; 背景定位 : background-position : left; 可替换 right; top; left top; right bottom; 30% 50%; 附加属性 : background-attachment : fixed; 可替换 scroll; 显示属性 : display : none; 可替换 block; inline; run-in; compact; list-item; marker; 是否可见 : visibility : visible; 可替换 hidden; 资源定位 : position : static; 可替换 relative; absolute; fixed; 距离顶部 : top 距离左边 : left 距离右边 : right 距离底边 : bottom 优先等级 : z-index 鼠 标指针 : cursor : crosshair; 可替换 default; pointer; move; text; wait; help; n-resize; s-resize; w-resize; e-resize; ne-resize; nw-resize; se-resize; sw-resize; http://www.pconline.com.cn/pcedu/videoedu/dreamweaver/0704/1002891.html
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值