0
我试图用内联CSS导出一个圆形图像,但是当导出到Word文档时,我得到一个巨大的矩形图像。为什么?我该如何解决这个问题?是否有另一种简单的导出方法(对.docx或PDF或其他)?CSS边框半径在jQuery-word-export插件中不起作用
我正在使用由markwindoll开发的jQuery-word-export插件。
我试图是这样的:Profile picture example
我所得到的是这样的:Exported example
我的代码是:
<div id="export-content">
<!-- PROFILE PICTURE -->
<div id="divProfielfoto" ng-controller="profielfotoCtrl">
<img id="profielfoto" ng-src="{{profielfoto}}" alt="profielfoto" style="width: 125px;height:125px;margin-bottom: 20px; border-radius:50%; border: 7px solid orange;" />
</div>
<input style="display: none;" id="profileUpload" type="file" accept="image/*"/>
<!-- PROFILE PICTURE END -->
</div>
<button class="word-export" onclick="export()">Export as .doc</button>
我导出代码如下:
$(".word-export").click(function (event) {
$("#export-content").wordExport("CV " + naam);
});
任何其他插件/解决方案也是受欢迎的,如果它们易于使用(我是网络应用程序开发的初学者)
我猜想导出库没有代码来支持Word中的圆形边框?不幸的是,除了重写库,或者将其作为请求添加到开发人员之外,可能没有那么多。 – junkfoodjunkie
如果它不起作用,你有没有试图通过背景图像为你的#divProfielfoto div使用该边框? – nguyenhoai890
nguyenhoai890我试过了,但它不起作用。那么,在导出的文件中,它可以与边框(它显示)一起工作,但不是作为一个圆圈 – Johnnybossboy