是否有可能为下拉列表设置watermarkcontrol? [英] Is there any possible to set watermarkcontrol for dropdownlist?
本文介绍了是否有可能为下拉列表设置watermarkcontrol?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的朋友们,
有没有可能为下拉列表设置watermarkcontrol?如果可能的话请帮助我。
谢谢。
Dear Friends,
Is there any possible to set watermarkcontrol for dropdownlist? If possible please help me.
Thank you.
推荐答案
这些链接可以帮助你>
http://www.nullskull.com/q/10355222/drop-down-liast-watermark.aspx [ ^ ]
http://forums.asp.net/t/1196809。 aspx?水印+扩展器+类型+功能+开+ + +下拉+ [ ^ ]
http://net-ajax.todaysummary.com/q_dotnet-ajax_1034.html [ ^ ]
these links may help you
http://www.nullskull.com/q/10355222/drop-down-liast-watermark.aspx[^]
http://forums.asp.net/t/1196809.aspx?Watermark+extender+type+function+on+a+dropdown+[^]
http://net-ajax.todaysummary.com/q_dotnet-ajax_1034.html[^]
没有直接的方法可以通过一些css技巧来实现这个目的br $> b $ b
函数ddlinitial(ddl){
if(ddl.selectedIndex) == 0){
ddl.style.backgroundColor ='Blue';
ddl.options [0] .innerText ='请选择......';
} else {
ddl.style.backgroundColor ='';
ddl.options [0] .innerText ='';
}
}
There is no direct way for doing this we can make this by some css tricks
function ddlinitial(ddl) {
if (ddl.selectedIndex == 0) {
ddl.style.backgroundColor = 'Blue';
ddl.options[0].innerText = 'Please select...';
} else {
ddl.style.backgroundColor = '';
ddl.options[0].innerText = '';
}
}
这篇关于是否有可能为下拉列表设置watermarkcontrol?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文