首页 > 解决方案 > 占位符新行不适用于移动设备

问题描述

我有一个textarea不会在移动设备上断线的,只能在桌面上使用 


 <textarea class="fontRoundedLight" rows="15" cols="20" maximum-scale=1 placeholder="one line &#13;&#10; more text &#13;&#10; and more &#13;&#10; and more."></textarea>

iPhone Safari会看到只有在没有空间时才会中断的行,而不是在我要求时才中断。

标签: html

解决方案


推荐阅读