简体   繁体   English

ConvertAPI:将 HTML 转换为 DOCX 不适用于网格 css

[英]ConvertAPI: Convert HTML to DOCX doesn't work with grid css

I want to convert HTML to DOCX have a text with 2 columns inside by using https://www.convertapi.com/ But when I use "display: grid" in HTML file, it doesn't work in DOCX file.我想通过使用https://www.convertapi.com/将 HTML 转换为 DOCX 有一个包含 2 列的文本,但是当我在 HTML 文件中使用“显示:网格”时,它在 DOCX 文件中不起作用。 I tried with "display: flex", but it doesn't work too.我尝试使用“display:flex”,但它也不起作用。 Does it have other CSS to work as I want?它是否有其他 CSS 可以按我的意愿工作?

Unfortunately, the modern CSS is not supported in DOCX files.不幸的是,DOCX 文件不支持现代 CSS。 What you could do in this case is create a table with two equal columns, or create two inline-block elements that would take up to 50% of space.在这种情况下,您可以创建一个包含两个相等列的表,或者创建两个最多占用 50% 空间的内联块元素。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM