Having an input
<input type="text" id="myTest" value="bla bla bla"/>
and doing this (using jQuery)
$('#myTest').select();
causes "bla bla bla" to be selected with default dark blue selection color.
Now, is there any way I can change this color using css? css3 can change selection using for instance
::-moz-selection {
background: #ffb7b7;
}
but this only works on text in other elements, not in html inputs.
Any ideas?
/T
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…