Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/77.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
Html TextArea包装,一致的实现w/out JS_Html_Css_Asp.net - Fatal编程技术网

Html TextArea包装,一致的实现w/out JS

Html TextArea包装,一致的实现w/out JS,html,css,asp.net,Html,Css,Asp.net,我有一个从C#服务器控件呈现的文本区域。标记如下所示: <tr> <td> <span style="font-size:11pt;font-weight:bold;">Description</span> <br> <textarea name="Field_Description" rows="2" cols="20" id="Field_Description" style="width:300px;"> </t

我有一个从C#服务器控件呈现的文本区域。标记如下所示:

<tr>
<td>
<span style="font-size:11pt;font-weight:bold;">Description</span>
<br>
<textarea name="Field_Description" rows="2" cols="20" id="Field_Description" style="width:300px;">
</textarea>
</td>
</tr>

描述

我尝试设置包裹属性,但没有效果:


它包装了文本,我已经检查了它是否工作,您面对的是什么?它在IE9中继续一行,而不管字符类型。您是否尝试过
溢出:滚动
css!或textarea{white space:pre wrap;}发布的代码不会重现问题。即使没有任何
wrap
属性,文本也会在IE中换行。要么你使用特殊意义上的“包装”(请用直接可见的术语解释你的意思),要么是一些CSS或JavaScript导致了这个问题。