上點擊 - >即時在具有特定的高度和寬度(垂直滾動)一個DIV添加具有絕對位置一個div,其中用戶輸入其數據和節省I使用html2canvas轉換HTML印象。 var element = angular.element("#beforeComment_" + index);
html2canvas(element).then(function (canvas) {
var
我想一個html字符串轉換爲類似的圖像,以它是如何在這裏完成: html2canvas creates a canvas with a width and height of zero? 不過我不想表現出比對結果圖像的任何其他這一頁。因此,我不能簡單地將html字符串添加到DOM中,就像在那裏建議的那樣。我想我想要實現的是可能的,因爲html2canvas test console就是這樣做的。