多行文本框中的自动高度
我必须使用多行文本框显示数据库中的数据。
如何在此多行文本框中设置自动高度?
我的代码在这里,
I have to show data from database with multiline textbox.
How can i set height auto in this multiline textbox?
My code is here,<asp:TextBox ID="txtNaiyo" runat="server" TextMode="MultiLine" Rows="5" Width="100%" style="height:auto;" Value='<%# Eval("Naiyo") %>'/>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我做了一些很简单的事情。首先,我将 TextArea 放入 DIV 中。其次,我已调用此
Simple 脚本的 Ready Function。是div一次渲染的最大高度,除以一行的一个TextArea的高度。
I've made something quite easy. First I put the TextArea into a DIV. Second, I've called on Ready Function to this script
Simple. Is the Max Height of the div once is render, divided the height of one TextArea of one row.