js打印表单时,为什么表单内容修改后有的不起效? **如下:** **页面填写:**  **实际打印** :textarea内容不显示, 复选框也不显示高亮  源码demo: Document 正位 外显斜 内显斜 外隐斜 内隐斜 点我打印 document.getElementById('dw').addEventListener('click', function() { // window.print(); let docHtml1 = '' docHtml1 += $("#divKanZhengPanel-binli").prop("outerHTML"); $('#print-iframe').remove(); // 每次打印前移除先前生成的元素 // 开始打印 let iframe1 = document.createElement('IFRAME'); let doc1 = null; iframe1.setAttribute("id", "print-iframe"); iframe1.setAttribute('style', 'position:absolute;width:0px;height:0px;left:-0px;top:-0px;visibility: auto;'); document.body.appendChild(iframe1); doc1 = iframe1.contentWindow.document; doc1.write(docHtml1); doc1.close(); iframe1.contentWindow.focus(); iframe1.contentWindow.print(); })