Table is not getting rendered as expected in the png image, when the rows has rowspan attribute. Please provide the workaround to fix this issue
html2canvas([document.getElementById('mydiv')], {
onrendered: function (canvas) {
document.getElementById('canvas').appendChild(canvas);
var data = canvas.toDataURL('image/png');
}
});
This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.
The provided jsfiddle is now populated with the code to reproduce the issue. It seems that there is a problem if you set the background color of the <tr>
.
The provided jsfiddle is now populated with the code to reproduce the issue. It seems that there is a problem if you set the background color of the
<tr>
.
感谢! 解决了我的问题。
The provided jsfiddle is now populated with the code to reproduce the issue. It seems that there is a problem if you set the background color of the
<tr>
.感谢! 解决了我的问题。
但是我就是需要给行加背景色,怎么办?
The provided jsfiddle is now populated with the code to reproduce the issue. It seems that there is a problem if you set the background color of the
<tr>
.感谢! 解决了我的问题。
但是我就是需要给行加背景色,怎么办?
change the background color from tr to td
Most helpful comment
The provided jsfiddle is now populated with the code to reproduce the issue. It seems that there is a problem if you set the background color of the
<tr>
.