Textarea width and height automatic adaptation processing method
.comments {
width:100%;/*Automatically adapt to parent layout width*/
overflow:auto;
word-break:break-all;
/*in ie Solve the line breaking problem (prevent it from automatically changing to one line). Mainly solve IE compatibility issues. In IE8, when the width is set to 100% and the text field exceeds one line,
when we double-click the text content, it will automatically change to one line. display, so you can only use IE's proprietary line breaking attribute "word-break or word-wrap" to control line breaking)*/
}
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn