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

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -