【发布时间】:2015-12-15 10:16:14
【问题描述】:
我想要一张图片在右边,左边的文字在图片周围浮动。反之亦然,Recipies section in the documentation 上也有一个例子。但是,我没有使用右侧浮动的图像进行此操作。我尝试了什么:
addImage('myimage.png',
array(
'width'=>320,
'height'=>240,
'align'=>'right',
'wrappingStyle'=>'square',
'positioning' => 'absolute'
)
);
或
addImage('myimage.png',
array(
'width'=>320,
'height'=>240,
'align'=>'right',
'wrappingStyle'=>'square',
'positioning' => 'absolute',
'posHorizontalRel' => 'margin',
'posVerticalRel' => 'line'
)
);
我还尝试了负图像宽度等,但这也没有用。不幸的是,整个项目的文档真的很差,至少在phpword.readthedocs.org。
【问题讨论】: