相关疑难解决方法(0)

文本区域中的新行

<textarea cols='60' rows='8'>This is my statement one.\n This is my statement2</textarea>

<textarea cols='60' rows='8'>This is my statement one.<br/> This is my statement2</textarea>
Run Code Online (Sandbox Code Playgroud)

我尝试了两个,但在渲染html文件时新行没有反映出来.我怎样才能做到这一点?

html textarea line-breaks

269
推荐指数
9
解决办法
57万
查看次数

标签 统计

html ×1

line-breaks ×1

textarea ×1