我有这个文本框
<p>Event Data :<input id="data" type="text" wrap="true" value="{{data}}"
style="width: 757px; height: 170px" />
</p>
我希望它是多行的我不能使用 asp:textbox是否可以使用精确的文本框并使其成为多行或
i want it to be multiline i can't use asp:textbox is it possible to use exact textbox and make it multiline or
使文本框中的文本变为 自动换行
make the text in textbox go word wrap
这个怎么样:
<p>Event Data:
<textarea id="data" style="width: 757px; height: 170px" rows="10" cols="80">{{data}}</textarea>
</p>
向 Stewart 致敬(和 +1) 指出 rows 和 cols 是 textarea 的必需属性.
Hat tip (and +1) to Stewart for pointing out that rows and cols are required attributes to textarea.
这篇关于如何在普通的 html 文本框中自动换行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
触发点击传单标记Trigger click on leaflet marker(触发点击传单标记)
将外部geojson添加到传单层Add external geojson to leaflet layer(将外部geojson添加到传单层)
Leaflet - 在弹出窗口中获取标记的纬度和经度Leaflet - get latitude and longitude of a marker inside a pop-up(Leaflet - 在弹出窗口中获取标记的纬度和经度)
如何使用传单 js 在地图上精确放置 div 元素?How to precisely place a div element on a map using leaflet js?(如何使用传单 js 在地图上精确放置 div 元素?)
html2canvas 捕获除内部画布内容之外的所有内容html2canvas captures everything except the content of an inner canvas(html2canvas 捕获除内部画布内容之外的所有内容)
传单:不要在双击时触发点击事件功能leaflet: don#39;t fire click event function on doubleclick(传单:不要在双击时触发点击事件功能)