【发布时间】:2014-08-13 14:40:36
【问题描述】:
我有一个文本区域,它显示我数据库中“历史”列中的一些数据。 由于未知原因,文本前有近 1.5 行额外空格。任何人都可以给我一些想法,为什么会这样? 这是我的 HTML 片段:
<div>
<table>
<tr>
<th > History:</th>
<td>
<textarea style="margin-left:90px"; name="history"cols="80"label="notes"rows="4"wrap="virtual">
<?php echo $my_class->history;?></textarea>
</td>
</tr>
</table>
</div>
你可以在这里看到问题:
【问题讨论】:
-
尝试在 echo 中修剪
$my_class->history? -
我试过了,但没有解决这个问题
-
这是因为您的 php 标签在换行符上。它正在从
-
你说得对,I-LOVE-2-REVIVE。问题排序
标签: html textarea whitespace