12
文字区域中的新行
<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> 我尝试了两者,但是在渲染html文件时没有换行。我怎样才能做到这一点?
281
html
textarea
line-breaks