ie和firefox中的文本框宽度不同 [英] textbox width is different in ie and firefox

查看:66
本文介绍了ie和firefox中的文本框宽度不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



i在我的aspx页面中有一个文本框,其 textmode =multiline如下所示

< asp:TextBox ID =   txtAddress1 runat =   server样式=   width:280px; height:50px; TextMode =   MultiLine >  



但是ie和firefox.how的宽度是不同的,以解决这个问题?

谢谢..

解决方案

尝试使用这个

< asp:TextBox ID =txtAddress1runat =serverCssClass =txtTextMode =MultiLine> 



 .txt 
{
身高:10%;
宽度:20%;
}



问候..:笑:


在文本框中添加一个类



http://stackoverflow.com/questions/531462/how-to-make-a-textbox-and-a-textarea-same-width-cross-browsers [ ^ ]



http://stackoverflow.com/questions/2125509/how-do-i-set-the-size-of-an-html-text-box [ ^ ]





http://stackoverflow.com/questions/1 707509 / browser-issue-textbox-width [ ^ ]

Hi,
i have a textbox in my aspx page with its textmode="multiline"as below

<asp:TextBox ID="txtAddress1" runat="server" Style="width: 280px; height: 50px;" TextMode="MultiLine">


But its width is different in ie and firefox.how to solve this issue?
Thanks..

解决方案

Try using this

<asp:TextBox ID="txtAddress1" runat="server" CssClass="txt" TextMode="MultiLine">


.txt
{
   height:10%;
   width:20%;
}


Regards..:laugh:


add one class to the textbox

http://stackoverflow.com/questions/531462/how-to-make-a-textbox-and-a-textarea-same-width-cross-browsers[^]

http://stackoverflow.com/questions/2125509/how-do-i-set-the-size-of-an-html-text-box[^]


http://stackoverflow.com/questions/1707509/browser-issue-textbox-width[^]


这篇关于ie和firefox中的文本框宽度不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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