0
最近我開始使用html2canvas.js並面臨問題:使用按鈕類型的輸入元素無法正確呈現。我是編程新手,所以我不知道如何自己解決。這裏是plunker用BUG:plunkerhtml2canvas 0.5.0 beta2輸入bug
的index.html:
<div id="button" class="index_search">
<input type="button" value="Search">
</div>
<div id="renderedButton"></div>
的script.js:
window.onload = function() {
html2canvas(document.getElementById('button')).then(function (canvas) {
document.getElementById('renderedButton').appendChild(canvas);
});
}
我還附上穩定的0.4.1版本html2canvas的(html.js)。 請幫助:)
請對類似問題報告發表評論。這是從2011年開始的,但我認爲主要問題仍然是一樣的:https://github.com/niklasvh/html2canvas/issues/2#issuecomment-1637196 – Kaiido