Fastreport.Net用户手册(十七):HTML标签

你也许会在"Text"对象中用到一些简单的HTML标签。在默认状况下标签是禁用的,要开启它标签,须要在"Properties"窗口设置"HtmlTags"属性为true。如下列出的是支持的标签:字体

  • < b >...< /b > :加粗
  • < i >...< /i > : 斜体
  • < u >...< /u > :下划线
  • < strike >...< /strike > :删除线
  • < sub >...< /sub >:脚注
  • < sup >...< /sup >:上标
  • < font color=... >...< /font > :字体颜色—能够是已命名的颜色(如DarkGray),也能够是#RGB格式的十六进制代码(如#FF8030)。

如下示例将演示这些标签是如何被使用的:this

text < b >bold text< /b > < i >text in italic< /i > < b >< i >bold and in italic< /b >< /i >.net

E = mc< sup >2< /sup >对象

A< sub >1< /sub > = B< sup >2< /sup >get

this is regular text, < font color=red >and this is a red one< /font >it

this is regular text, < font color=#FF8030 >and this is an orange one< /font >ast

此文本将会以以下方式进行显示:下载

相关连接:im

相关文章
相关标签/搜索