如何在单击光标期间突出显示文本框边框? [英] How to highlight textbox border during click cursor..?

查看:54
本文介绍了如何在单击光标期间突出显示文本框边框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



Hi,

How to highlight the textbox border when i click inside the textbox (Like google search)...?

推荐答案

使用CSS ...试试下面的方法,它可能会帮助您...

http://www.cssportal.com/form-elements/text-box.htm [ ^ ]

http://www.techrepublic.com/Blog/programming-and-development/aspnet-basics-working-with-the-textbox-control/606 [ http://dailydotnettips.com/2011/03 /13/textbox-and-textarea-style-change-on-focus-using-jquery/ [
Using CSS ... Try bellow likn it may help you...

http://www.cssportal.com/form-elements/text-box.htm[^]

http://www.techrepublic.com/blog/programming-and-development/aspnet-basics-working-with-the-textbox-control/606[^]

http://dailydotnettips.com/2011/03/13/textbox-and-textarea-style-change-on-focus-using-jquery/[^]


hi 我尝试了一些代码来更改文本框的边框

hi I tried some code for changing border of textbox

<input type="text" id="txtsearch" onclick="changeborder()" />





function changeborder() {
         document.getElementById("txtsearch").style.borderColor = "red";
     }



在这里,我给出了用户单击文本框时如何更改边框颜色的方法.

如果您了解,可以尝试使用自己的代码.

您希望使用相同颜色的google thn查看Google网页的源代码,然后使用其简单的颜色查看它们的颜色.

最好的



Here I''m giving how we change border color whn user click on textbox.

Ig you understand you can try your own code for it.

You want same color of google thn view source of google webpage thn see which color they using its simple.

All the Best


如何在C#中更改文本框的边框颜色,请给我详细信息,
how to chang textbox bordor color in C# please give me details ,


这篇关于如何在单击光标期间突出显示文本框边框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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