您的位置 >>> 星想互联 >>> 课堂教学 >>> 教学案例
2018级计算机应用专业CSS教学常用样式表
点击数:16721  发布时间2019-03-15 20:57:27

background:red;   背景
width:200px;      宽度
height:300px;     高度
line-height:2;    行高
border:1px dashed red;   边框
padding:0 0 0 0;         内填充
margin:0 0 0 0;          外边距
color:red;               文字颜色
font-weight:bold/normal; 文字加粗
font-size:24px;          文字大小
text-indent:20px;        文字缩进
text-decoration:underline/none;    文字下划线
text-align:left/center/right;      文字对齐

list-style:none/square/circle     列表样式

position:relative/absolute        定位方式(相对/绝对)

left/right/top/bottom             定位方式后各方向的距离

clear:both                            清附浮动

border-bottom:1px dashed #999;   下边框效果

background:url(a.jpg) no-repeat 0 0 ; 背景复合属性,地址/不重复/位置水平/位置上下

来源:咸宁网站建设