`

FO中引入图片,怎样调整图片大小

 
阅读更多

FO中,引入图片

 

1. 第一种方法:通过在线图片编辑软件重新设置图片尺寸,然后再引入后微调

http://uupoop.com/  (支持透明图片处理后仍保留透明效果)

 

2. 第二种方法:不调整尺寸,直接对图片进行缩放

 content-width and content-height 都具有一个特殊的属性:scale-to-fit

配置该属性后,可以通过设置比例来达到图片大小的调整

 

<fo:external-graphic content-width="scale-to-fit"

 content-height="100%"

 width="100%"

 scaling="uniform"/>

 src="url(Images/bud400x300.jpg)"

 

Another way to scale down the images: 


<fo:external-graphic src="..." 
inline-progression-dimension.maximum="100%" 
content-width="scale-down-to-fit"/> 

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics