html - How to change background color of readonly textbox in css -
how change background color of readonly textbox in css
there many unkowns in question. browser want support? if textbox seem use asp.net, there no tag @ question.
generally said, behaviour between browsers different.
consider following html
<html> <head> </head> <body> <input type="text" disabled="disabled" value="this test" style="background-color:black; color:lime;" /> </body> </html>
ie8 renders background color properly, disabled controls have gray text shadows. mozille firefox beside renders control correct , sure there difference on different browsers , between browser versions (ie6 interprete color values correctly too).
if want have html regardless browser use, have use span or other inline element, format border , colors want, instead of using input element.
Comments
Post a Comment