The image captured with html2canvas lacks part of the content than the original web page, and the dom element sets the absolute.

the picture captured with html2canvas is missing part of the content than the original web page.

Does

have anything to do with setting up position:absolute and z-index on the original page?

the effect is shown in the figure
clipboard.png


clipboard.png

clipboard.png

clipboard.png

table and img are wrapped in div, and a large number of position:absolute and Zmuri indexs are set up. Does this have anything to do with it?

Apr.01,2021

pictures are not of the same origin. You need to add useCORS: true to allow images to cross domains; http://html2canvas.hertzen.com/configuration

Menu