Html2canvas: Table is not getting rendering to image if the rows has rowspan attribute

Created on 16 Aug 2015  ·  8Comments  ·  Source: niklasvh/html2canvas

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

Needs More Information

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>.

All 8 comments

1
2

html2canvas([document.getElementById('mydiv')], {
onrendered: function (canvas) {
document.getElementById('canvas').appendChild(canvas);
var data = canvas.toDataURL('image/png');
}
});

Is this still an issue with v1.0.0? If so, could you please share an example on jsfiddle.

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tibewww picture tibewww  ·  4Comments

stevencherry1 picture stevencherry1  ·  3Comments

tjchambers32 picture tjchambers32  ·  3Comments

rrutkows picture rrutkows  ·  4Comments

kunal886496 picture kunal886496  ·  3Comments