【发布时间】:2015-06-11 13:06:54
【问题描述】:
几个小时以来我一直在努力解决这个问题,我确信解决方案非常简单,或者根本不存在。
我正在尝试将 html 文件转换为 docx!
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: #d0e4fe;
}
h1 {
color: orange;
text-align: center;
}
p {
font-family: "Times New Roman";
font-size: 20px;
}
</style>
</head>
<body>
<h1>My First CSS Example</h1>
<p>This is a paragraph.</p>
</body>
</html>
我可以转换它没问题,但我无法让样式保持不变。
pandoc -s myfile.html -o test64.docx
pandoc -s -c myfile.css myfile.html -o test64.docx
请救救我。
【问题讨论】:
标签: html converter docx pandoc