使用jQuery的输入字段文本换行
Input Field text wrap with jQuery
我正在创建一个输入字段,以便为访问者提供如何继续操作的说明。一旦单击,说明将自动隐藏。我可以做,但我发现长句没有正确显示。我试着用css包装代码,但没有成功。
以下是代码:
.replybox{}
.reply-control{
border:1px solid #ccc;
background: transparent;
font-size:20px;
width:100%;
height:100px;
color:#8d8d8d;}
<input class="reply-control" name="replybox" onblur="if (this.value == "") {this.value = "How to wrap this text? It is hiding the overflown text. I am not finding any way. Please help";}" onfocus="if (this.value == "How to wrap this text? It is hiding the overflown text. I am not finding any way. Please help") {this.value = "";}" value="How to wrap this text? It is hiding the overflown text. I am not finding any way. Please help" type="text"/>
此处为JSFiddle
。
<textarea type="text" placeholder="Update details of your present skin condition (e.g. normal, dry, flaky, etc). Optionally, add details of any past skin conditions, medication or skin treatments/surgeries undergone. You may also upload images/reports, so that doctors understand your condition better." value=""></textarea>
相关文章:
- Internet Explorer中的文本换行错误
- 使用jQuery的输入字段文本换行
- 脚本图像获胜't用文本换行
- D3具有矩形和文本换行的水平树布局
- 标记内的文本换行
- 使用 jQuery 将文本换行在
标记内 - 如何在文本换行时在图像下方保留填充
- 溢出隐藏不会文本换行
- d3.js径向树布局可变节点长度/文本换行节点描述
- 如何手动管理HTML中的文本换行
- jQuery动画slidelleft没有文本换行
- 将文本换行到并由
使用jquery - 文本换行到列
- 如何在文本换行时减少字母间距
- 文本换行选项-建议
- 围绕span文本换行元素
- 在Polymer 1.0中带有绑定的文本换行元素
- Var文本换行或任何格式不工作
- 如何在javascript中拖动图像/元素时导致实时文本换行
- 使用 javascript/jquery 将带有强标签的文本区域中突出显示的文本换行