麦田培训学校管理软件MTcnsoft Training2.0白皮书

麦田软件公司出品

h)  Ul排版标签的使用?

<ul>
<li>…</li>
<li>…</li>
</ul>

 

Ul属性: x,y,rep。

名称

说明

x

定义文本内容在打印纸张中,距左边的距离。单位:cm|mm 缺省:mm。

y

定义文本内容在打印纸张中,距顶部的距离。单位:cm|mm 缺省:mm。

rep

取值范围:h|v,默认是h。h表示横向排列子标签。V表示纵向排列子标签。

 

 

Li属性: format,style。

名称

说明

format

取值范围:p| child| auto|text,默认是text。P表示Li的用法等于P,child表示Li里必需内嵌子标签,auto根据内容自动判断,text将Li内内容视为文本等于span。当为p段落模式时,Li将根据内容自适应高度。

class

指定样式名称。可以指定多个。如: class= "style1 style2"

style

定义标签的样式,宽度、高度、色彩、字体、文本对齐方式等。

 

Style样式支持的属性:

名称

说明

width

文本范围的宽度。单位:cm|mm 缺省:mm。

height

文本范围的高度。单位:cm|mm 缺省:mm。

font-family

字体名称。如:font-family:宋体。

font-size

字体大小。如:font-size:10

font-style

字体样式。取值范围为:regular|bold|italic|strikeout| underline,分别表示:一般、粗体、斜体、带删除线、带下划线。

background-color

背景色。

color

文本颜色。

text-align

文本水平对齐方式。(当设置width,height值时生效)。取值范围为:left|right|center。

text-valign

文本垂直对齐方式。(当设置width,height值时生效)。取值范围为:top|middle|bottom。

padding

填充文本边框与文本内容之间的空白。

border

边框粗细。单位:cm|mm 缺省:mm。

border-width

边框粗细。

border-style

边框样式。

border-color

边框颜色。

border-top-width

顶部边框粗细。

border-right-width

右边边框粗细。

border-bottom-width

底部边框粗细。

border-left-width

左边边框粗细。

border-top-style

顶部边框样式。取值范围为:dash|dashdot|dashdotdot|dot|solid。

border-right-style

右边边框样式。取值范围为:dash|dashdot|dashdotdot|dot|solid。

border-bottom-style

底部边框样式。取值范围为:dash|dashdot|dashdotdot|dot|solid。

border-left-style

左边边框样式。取值范围为:dash|dashdot|dashdotdot|dot|solid。

border-top-color

顶部边框颜色。

border-right-color

右边边框颜色。

border-bottom-color

底部边框颜色。

border-left-color

左边边框颜色。

 



Copyright ©2010 - 2014 MTCNSOFT.com.All rights reserved.
Powered By: MTCN Group