问题:textarea数据是数据库直接输出填充,请问如何做到自适应? 回答: var tt = document.getElementsByTagName("textarea").item(0), len = tt.value.length, width = tt.clientWidth, style = (window.getComputedStyle ||function(a){return a.currentStyle})(tt, null), fs = parseInt(style['font-size...