asp.net 如何去掉textbox滚动条?

来源:百度知道 编辑:UC知道 时间:2024/05/27 20:09:21
我的textbox的属性设为了MultiLine,是填充固定数量的文字,我希望能去掉上下滚动条,文本区域固定不改变!改如何设置啊??

在代码里面加上:style="overflow:hidden"

比如:
<asp:TextBox ID="txtBox1" runat="server" TextMode="MultiLine" style="overflow:hidden"></asp:TextBox>

overflow:hidden
这句是完全不要滚动条的意思。

overflow:hidden
是指超过的内容隐藏,即不会出现滚动条了。

style="overflow-y:hidden"