ASP.NET文本框边框 [英] ASP.NET textbox border
本文介绍了ASP.NET文本框边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
单击asp文本框时,会在其周围绘制边框,这使我的设计不那么吸引人,因此我想在单击文本框时禁用该边框.
When I click on the asp textbox, I''m getting a border drawn around it, Which is making my design not that catchy so I wanna disable the border on the click of the textbox.
Is this possible?
推荐答案
使用CSS可以做到.
Using css you can do it.
.myTextBox:focus
{
border:none;
}
<asp:textbox id="txtTest" cssclass="myTextBox" runat="Server" xmlns:asp="#unknown" />
use
use
textarea:focus, input:focus{
outline: none;
}
请找到以下链接,看看是否有帮助:
http://asp-net-example. blogspot.com/2009/03/how-to-set-change-textbox-border-style.html [ http://www.velocityreviews.com/forums/t82081-display-textbox- with-no-border.html [ ^ ]
问候,
瓦尼
Please find the following link, see if it helps:
http://asp-net-example.blogspot.com/2009/03/how-to-set-change-textbox-border-style.html[^]
http://www.velocityreviews.com/forums/t82081-display-textbox-with-no-border.html[^]
Regards,
Vani
这篇关于ASP.NET文本框边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文