我正在尝试将 html 转换为 pdf,它在浏览器上运行良好,但是当我下载 pdf 时,css 属性、转换和写入模式不起作用。这是 css 代码示例。
我正在使用 dinktopdf c# 库。
.left-content h2 {
color: white;
text-transform: uppercase;
bottom: 65px;
left: -25px;
position: absolute;
writing-mode: vertical-rl;
transform: rotate(-90deg);
text-orientation: mixed;
}
最佳答案
尝试
-webkit-transform: rotate(90deg);
代替transform: rotate(-90deg);
关于c# - 将 HTML 转换为 PDF dink 到 pdf 时 CSS 转换和写入模式属性的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56391654/