如何保持文本框固定在一个位置 [英] how to keep textbox fixed in a position

查看:496
本文介绍了如何保持文本框固定在一个位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我的网页上有一个文本框.我保持多行属性为真.
但是在运行时中,我选择了文本框并拖动.它正在扩展,
因此,即使我尝试拖动,我也不想扩展文本框.如何设置固定的文本框.


i have a textbox in my webpage. i kept multiline property true.
but in the runtime i selected the textbox and dragged. it is expanding ,
so i dont want to expand the textbox even when i tried to drag. how can i set the textbox fixed.
help me in my requirement.

推荐答案

设置样式为调整大小:无;"
Set a style of "resize: none;" on it.


尝试使用以下代码( http://learnlogic.blogspot.in/2011/07/error-multiline-textbox-resizable-in.html [
Try this code from (http://learnlogic.blogspot.in/2011/07/error-multiline-textbox-resizable-in.html[^]):
<asp:textbox id="TextBox1" style="Resize:none;" textmode="MultiLine" runat="server" xmlns:asp="#unknown">
</asp:textbox>


使用style ="resize:none,width:yourwidth,height:yourheight".
设置宽度和高度固定.
希望它能解决您的问题.
use style="resize:none, width:yourwidth, height:yourheight".
set your width and hieght fixed.
Hope it will fix your Problem.


这篇关于如何保持文本框固定在一个位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆