Home >php教程 >PHP开发 >Web knowledge and questions (html, css, js)

Web knowledge and questions (html, css, js)

高洛峰
高洛峰Original
2016-11-24 10:12:391072browse

1. Setting the length and width of textarea
Method 1: Use cols, rows

Disadvantages: It cannot be modified after setting (js also cannot be modified), and the sizes are different in IE and Firefox.
Method 2: Use width, height.

2. The content in the Table automatically wraps
Use style = "WORD-BREAK: break-all"
table's td Riga After adding the textarea, set the width to 100%. The textarea will be opened automatically. Just add the above to the table


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