Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.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
Php HTML中的换行字_Php_Css_Html - Fatal编程技术网

Php HTML中的换行字

Php HTML中的换行字,php,css,html,Php,Css,Html,我有一个很长的文本字符串,需要在从数据库中提取后显示。我可以在屏幕上显示它,但是当字符串太长时,不会显示完整的字符串。这是我的密码: echo '<td>'.'<input type = "text" class="form-control" disabled = "disabled" id ="fieldText" name = "fieldText['.$row["ID"].']" value = "'.$row["fieldText"].'">'."</td&

我有一个很长的文本字符串,需要在从数据库中提取后显示。我可以在屏幕上显示它,但是当字符串太长时,不会显示完整的字符串。这是我的密码:

echo '<td>'.'<input type = "text" class="form-control" disabled = "disabled" id ="fieldText" name = "fieldText['.$row["ID"].']" value = "'.$row["fieldText"].'">'."</td>";
echo'.'';

不确定需要进行哪些更改才能显示完整的字符串。有人能帮忙吗。

试试使用文本区域。将输入字段替换为同名的textarea标记

echo '<td>' . ' <textarea class="form-control" 
     name = "fieldText['.$row["ID"].']" 
     value = "'.$row["fieldText"].'" 
     cols="40" rows="4" ></textarea>' . "</td>";
echo'.'。"";

尝试使用文本区域。将输入字段替换为同名的textarea标记

echo '<td>' . ' <textarea class="form-control" 
     name = "fieldText['.$row["ID"].']" 
     value = "'.$row["fieldText"].'" 
     cols="40" rows="4" ></textarea>' . "</td>";
echo'.'。"";

是否检查了数据库中插入字符串的长度?瓦尔查尔(x)。也许x不够长。检查fieldText的VARCHAR是否足够长。使用css增加输入的宽度。使用“样式”属性。是否检查了数据库中插入字符串的长度?瓦尔查尔(x)。也许x不够长。检查fieldText的VARCHAR是否足够长。使用css增加输入的宽度。使用“样式”属性。