将 HTML 用于 BarTender

HTML 是超文本标记语言 (HyperText Markup Language)。使用 HTML 标记,可以设置对象的格式。HTML 通常用于设置网站的格式,但也可用于在 BarTender 中设置文本对象的格式。

关闭使用 HTML 格式的示例

以下示例说明了如何在文本对象中使用 HTML。

<html>

<head>

<style>

body {font-size:8pt; font-family:Arial;}

table {background:AntiqueWhite; width:300px;}

th {background:DarkBlue; color:White;}

td {border: solid 1px;}

</style>

</head>

<body>

<table>

<tr>

<th> First Name </th>

<th> Last Name </th>

<th> City </th>

<th> State </th>

</tr>

<tr>

<td> Lisa </td>

<td> Johnson </td>

<td> Seattle </td>

<td> WA </td>

</tr>

<tr>

<td> John </td>

<td> Smith </td>

<td> Baltimore </td>

<td> MD </td>

</tr>

<tr>

<td> Sarah </td>

<td> Donahue </td>

<td> Dallas </td>

<td> TX </td>

</tr>

</table>

</body>

</html>

将上述样本代码插入到文本对象后,会在项目上打印以下对象。

本部分内容