javascript-如何获取p标签的行数/字数?

WBOY
Release: 2016-06-02 11:34:13
Original
3331 people have browsed it

javascriptphphtml

如题,请问如何判断/获取p标签(或textarea 文本域)的行数?

如:不管是自动换行,还是用户手动换行,只能输入5行.

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template