问题描述:Incorrect text wrapping position · Issue #2696 · niklasvh/html2canvas (github.com)

解决办法:

解决 html2canvas safari 文本对不齐问题

 

 

使用 1.0.0 版本问题就解决了~
https://github.com/niklasvh/html2canvas/releases/tag/v1.0.0

 

注:文字是对齐了,但如果是比较复杂的页面,还会有其他问题!!(脑壳疼)

 

2021.09.15:换了最新版的 dom-to-image,完美解决问题!!!

传送门:tsayen/dom-to-image: Generates an image from a DOM node using HTML5 canvas (github.com)

https://raw.githubusercontent.com/tsayen/dom-to-image/master/dist/dom-to-image.min.js

 


 

完。 

相关文章:

  • 2022-02-04
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
  • 2022-01-08
  • 2022-12-23
相关资源
相似解决方案