The picture generated by html2canvase is empty.

problem description

the code is as follows:

var dom = document.getElementById("photoCon1")
html2canvas(dom, {useCORS: true}).then(canvas => {
   // canvas DOM    
   document.body.appendChild(canvas);
});

the project framework uses vue, to get the canvas in the above way, which is always empty. I would like to ask if you have encountered this situation.

Apr.03,2021

should be a cross-domain picture


take a look at your own style, have you put iframe display none

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37252-2c061.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37252-2c061.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?