Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table is not getting rendering to image if the rows has rowspan attribute #656

Closed
madhav1306 opened this issue Aug 16, 2015 · 9 comments
Closed

Comments

@madhav1306
Copy link

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

@Nimesh-Soni
Copy link

1
2

@Nimesh-Soni
Copy link

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

@niklasvh
Copy link
Owner

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

@no-response
Copy link

no-response bot commented Dec 12, 2017

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.

@jopassaldevar20
Copy link

jopassaldevar20 commented Jul 23, 2018

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

@byc233518
Copy link

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

感谢! 解决了我的问题。

@ShawshankLin
Copy link

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

感谢! 解决了我的问题。

但是我就是需要给行加背景色,怎么办?

@zhaydexxa
Copy link

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

@periyasamy1986
Copy link

periyasamy1986 commented Mar 8, 2023

Hi All In the table td you can add the css "vertical-align: baseline;" it will work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants