麦田语手册 v1.0

麦田软件公司出品

Span文本标签

 

属性: xystyle

名称

说明

x

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

y

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

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

text-trimming

指定如何在不完全适合布局形状的字符串中修整字符。取值范围为:character| ellipsis| ellipsispath| ellipsisword| none| word。等同于C#中的System.Drawing.StringTrimming枚举。注意:设置此属性值时,需要同时配合text-formatflags的设置才能生效。

text-formatflags

指定文本字符串的显示和布局信息。取值范围为:righttoleft| vertical| displaycontrol| fitblackbox| linelimit| trailingspace| noclip| nofontfallback| nowrap。等同于C#中的System.Drawing. StringFormatFlags枚举。

border

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

border-color

定义边框的线条颜色。

border-style

定义边框的样式。取值范围为:d dash|dashdot|dashdotdot|dot|solid

padding

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

 

 



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