【问题标题】:How to word wrap <input type="textarea"如何自动换行 <input type="textarea"
【发布时间】:2020-01-16 22:25:15
【问题描述】:

我创建了一个从数据库中提取数据的表单。数据显示正确,但我有一个包含 200 个字符的字段,我需要显示所有文本,但显示在一行上。字段类型为“textarea”,但不换行。我使用的代码和css是:

CSS:

.update input[name="update_descript"] {
display: flex;
height: 150px;
width: 600px;

}

<div class="row">
<div class="col-md-6">      
    <label for="descript">Description</label>
    <input type="textarea" name="update_descript" placeholder="ride description" value="<?=$ride['rideDesc']?>" id="descript"></textarea>
</div>

【问题讨论】:

    标签: input textarea word-wrap


    【解决方案1】:

    我意识到标签不需要也不能与标签一起使用。只需使用标签。

    【讨论】:

      猜你喜欢
      • 2012-10-16
      • 2011-08-03
      • 2013-04-02
      • 1970-01-01
      • 1970-01-01
      • 2015-09-13
      • 2015-01-18
      • 2011-08-14
      相关资源
      最近更新 更多