给select增加placeholder技巧

转自:http://stackoverflow.com/questions/5805059/how-do-i-make-a-placeholder-for-a-select-box/8442831



1.使用默认option再隐藏此选项


效果如下:


Please Choose Open when powered (most valves do this) Closed when powered, auto-opens when power is cut

2.使用默认otpion再disable此选项




效果如下:

Select your option Durr



你可能感兴趣的:(html)