常用排版格式应用CSS汇总
常用排版格式应用CSS<link rel="stylesheet" type="text/css" href="style/xmjs.css">—外联css样式<style type="text/cs
#contentsullia:hover{/*鼠标经过的颜色*/ 常用排版格式应用CSS position:relative;/**相对定位参考点(以左上角)**/ position:absolute;/**设置相对(绝对)定位**/ <linkrel="stylesheet"type="text/css" border-collapse:collapse;/***表格显示单格线*/ href="style/xmjs.css">—外联css样式 <tableclass="ex">/**定义行元素**/ <styletype="text/css">内联css样式 <colgroup>/**列元素标签** <ahref="xmjs.html"target="_top">链接到“地址”全视窗显示 <colclass="col1">/**定义列元素**/ <imgsrc="images/xiangmjsh.jpg"alt="项目介绍"/>—插入图片 <scripttype="text/javascript"src="images/Spry list-style-type:none;—去除表单符号 TabbedPanels.js"></script>调用动态样式表式样 line-height:200%;/**行高**/ <scripttype="text/javascript"src="fiv.js"></script>调用动 display:block;/**内联变区块**/ 态样式表式样 display:inline;/*区块变成内联*/ letter-spacing:1px;/**文档间距**/ background:#fffurl(../images/bg1.jpg)no-repeatleftbottom; overflow:auto;/**滚动条自动**/ }/**加入背景色插入背景图片只重复一次居左居底**/ font-stype:/**字体设置**/ margin:0auto;/**居中自适应**/ cursor:polnter;/**手型**/ float:left;/***区块左漂移*/ text-indent:10px;/**文档前留空**/ clear:both;/**清除浮动**/ Flash 如果添加了可以设置背景为透明的代码: margin-left:10px;/*离左边的就距离为10px*/ <paramname="wmode"value="transparent"> text-align:center;/**文档排列居中**/ position:relative;/**在父类设置基准点**/ text-decoration:none;/**文本无装饰**/ position:absolute;/**设定与基准点相对浮动**/ text-indent:28px;/*首行缩进*/ text-indent:数值px;缩进 text-decoration:none;/**超链接不要下划线**/ 1

