Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Input 如何包装单词<;输入类型=";textarea";_Input_Textarea_Word Wrap - Fatal编程技术网

Input 如何包装单词<;输入类型=";textarea";

Input 如何包装单词<;输入类型=";textarea";,input,textarea,word-wrap,Input,Textarea,Word Wrap,我创建了一个从数据库中提取数据的表单。数据显示正确,但我有一个包含200个字符的字段,我需要显示所有文本,但显示在一行上。字段类型为“textarea”,但不换行。我使用的代码和css是: css: .update input[name="update_descript"] { display: flex; height: 150px; width: 600px; } 描述 我意识到标签不需要,也不适用于标签。只需使用标签 <div class="row"> <div cl

我创建了一个从数据库中提取数据的表单。数据显示正确,但我有一个包含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>