width:宽度 height:高度 color:文字颜色 Background-color:背景颜色 text-align:center;文本居中 line-height行高 border:边框 padding:内边距 margin:外边距 top/bottom/left/right 上下左右 font-size:字体大小 font-weight:bold;加粗 font-weight:normal;不加粗 text-decoration:none;去掉下划线 position:relative;相对定位 position:absolute;绝对定位 position:fixed;固定定位 cellpadding:单元格与内容之间的空隙 cellspacing:单元格与单元格之间的间距 align:"left/center/right"左右对齐 valign:"top/middle/bottom"上下对齐 colspan=“所要合并的单元格的列数” rowspan=“所要合并单元格的行数” 中文是ZH-CN
文本大小:font-size:value pt=12px 1em=16px 0.75em=12px xx-small=9px s-small=11px small=13px medium=16px large=19px x-large=23px xx-large=27px 文本颜色:color 文本字体:font-family:字体1,字体2 文字加粗:font-weight:bolder(更粗)/bold(加粗)/normal(常规)/100-900{500常规 600以上加粗} 文字倾斜:font-style:italic/oblique/normal(取消倾斜,常 规显示) italic:斜体字,oblique:倾斜文字 水平对齐方式:text-align:left/right/center/justift(两端对齐对中文不起作用)
文字行高:line-height:normal/value A)当单行文本的行高等于容器高时,可实现单行文本在容器中垂直方向居中对齐; B) 当单行文本的行高小于容器高时,可实现单行文本在容器中垂直中齐以上任意位置的定位; C) 当单行文本的行高大于容器高时,可实现单行文本在容器中垂直中齐以下任意位置的定位。(IE6及以下版本存在浏览器兼容问题) *文字属性简写:font:12px/24px “宋体”; font属性的简写:字号,行高,字体 font-size:12px; line-height:24px; font-family:”宋体”; font属性的简写: 说明:font的属性值应按以下次序书写(各个属性之间用空格隔开) 顺序: font-style font-weight font-size / line-height font-family (1)简写时 , font-size和line-height只能通过斜杠/组成一个值,不能分开写。 (2) 顺序不能改变 ,这种简写法只有在同时指定font-size和font-family属性时才起作用,而且,你没有设定font-weight , font-style , 他们会使用缺省值(默认值)。
color 颜色 font-size:…px 字体大小 line-height:=盒子高度 上下对齐 text-align:center 左右对齐
