文档介绍:(大部分不支持)pt1pt/72英寸pc1pc/12ptpx像素(推荐使用)颜色单位:说明十六进制如:color:#ff0000颜色名称如:color:red三原色单位如:rgb(255,0,0)一般最常用的是十六进制,三原色单位的原理【红(r),绿(g),蓝(b)】混合而成。。每个值域在0--stylenormal正常显示italic斜体font-variantnormal正常显示small-caps将英文大小写字母写调为同宽font-weightnormal正常显示bold粗体font-size像素字体大小百分比字体大小font-family字体名称设置字体名称font属性简化的使用方法:font:是否斜体是否同宽是否粗体大小字体名称例如:font:italicbold200隶书;-spacingnormal正常显示长度文本间隔word-spacingnormal正常显示数字单词间距white-spacenormal文本自动处理换行pre换行和空白受保护nowrap强制在同一行显示text-alignleft文字靠左right文字靠右center文字靠中text-decorationnone正常显示underline加上下划线overline加顶线line-through加删除线text-indent长度首行缩进百分比同上line-height像素行高数字/百分比行高主讲:李炎恢PHP100视频教程text-transformnone正常显示可以包含大,小字符capitalize字符串第一个字符大写uppercase设置大写字符lowercase设置小写字符vertical-alignsub设置文字为下标。super设置文字为上标。top元件往上端靠齐。middle设置文字是在中线位置。bottom元件往下端靠齐。-attachmentscroll设置背景图像会随视窗滚动条的移动而移动。fixed设置背景图像不会随视窗滚动条的移动而移动。background-color十六进制background-color:#ff0000;英文名称background-color:red;三原色background-color:rgb(255,0,0)transparentbackground-color:transparent;透明background-imageURLbackground-image:url("")背景图片none不设置背景图片background-positiontopleft设置背景图案出现在上左方。topcenter设置背景图案出现在上方中间。topright设置背景图案出现在上右方。centerleft设置背景图案出现在中间左方。centercenter设置背景图案出现在IE中间。centerright设置背景图案出现中间右方。bottomleft设置背景图案出现在下左方。bottom设置背景图案出现在正下方。bottomright设置背景图案出现在下右方。background-repeatrepeat将背景图案填满整个背景。repeat-x将背景图案在水平方向添满。repeat-y将背景图案在垂直方向添满。no-repeat图案只出现一次。背景图案简化方案:background:-style-typenone无符号disc实体的小圆点。circle空心的小圆点。square实心的小方块。decimal1,2,3...lower-romani,ii,iii...upper-romanI,II,III...lower-alphaa,b,c,d,e...upper-alphaA,B,C,D,E...list-style-positioninside清单项目较往右移。outside清单项目正常显示。list-style-imageURLlist-style-image:url()none不会显示任何图象清单的简化设置:list-style:circleinsideurl("")第16