`
schy_hqh
  • 浏览: 542654 次
  • 性别: Icon_minigender_1
社区版块
存档分类
最新评论

FO使用whitespace进行排版

 
阅读更多

white-space="pre"  : 按原始样式显示空格,即使用代码中的预定义样式

 

 

	<fo:block start-indent="50%" end-indent="10%" background-color="white" 
			margin-top="60px" font-size="16pt">
		<fo:block space-before="10px"></fo:block>
		<fo:block space-before="10px" margin-left="10%" white-space="pre" >第一行:     <fo:inline th:utext="${owner.title}"></fo:inline></fo:block>
		<fo:block space-before="10px" margin-left="10%" white-space="pre">第二行:   <fo:inline th:utext="${ag.agentName}"></fo:inline></fo:block>
		<fo:block space-before="10px" margin-left="10%">第三行:
			<fo:inline th:utext="${ag.agentTel}"></fo:inline>
		</fo:block>
		<fo:block space-before="10px" margin-left="10%">第四行:
			<fo:inline>123-888-8888</fo:inline>
		</fo:block>
		<fo:block space-before="10px"></fo:block>
	</fo:block>

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics