Joh*_*ohn 4 html css twitter-bootstrap
我想在输入文本占位符中添加换行符。
<div class="form-group">
<input type="text" class="form-control ph" id="" placeholder="Qualification Education Background *">
</div>
Run Code Online (Sandbox Code Playgroud)
我尝试过
<div class="form-group">
<input type="text" class="form-control ph" id="" placeholder="Qualification\n</br> Education\n <br>Background *">
</div>
Run Code Online (Sandbox Code Playgroud)
但这不起作用。有人会帮助我实现这一目标吗?
输入不能超过一行,所以如果你想让输入多行使用textarea。要在文本区域的占位符中换行,请使用 html 实体-
Run Code Online (Sandbox Code Playgroud)
例如: