element.style.height = element.scrollHeight + 'px'; ... width из JavaScript, визуальное отображение корректно в обоих случаях.
確定! 回上一頁