express| text Box
For text boxes, read-only state and normal state, the browser does not make any special tags, on the surface, the effect is the same, so that for users, ease of use is not very high.
Of course, we can change the background color of the read-only text box to distinguish, this time we need the programmer to determine whether the text box is read-only, and then introduce the corresponding CSS, undoubtedly increased the workload.
Here, using expression to provide a solution, you only need to introduce this CSS on each page, the rest are judged by the program itself, as follows:
<style>input{background-color:expression (this.readonly && this.readonly==true)? " #cccccc ":" ")}</style><input type=" text "name=" ><input type= "text" name= "" Readonly><input TYPE = "text" name= "" ><input type= "text" Name= "" readonly>
[Ctrl + A ALL SELECT hint: You can modify some of the code, and then run]