我尝试了几种方法,但是都没有用。有谁知道解决这个问题的妙招?
<textarea placeholder='This is a line \n this should be a new line'></textarea>
<textarea placeholder='This is a line
should this be a new line?'></textarea> <!-- this works in chrome apparently -->
更新:在chrome中不起作用。只是文本区域的宽度。
请参阅: http ://jsfiddle.net/pdXRx/