For text boxes, under read-only states, the browser does not do any special tags, the surface is the same, so that the user is not very high.
Of course, we can change the background color of the read-only text box to distinguish. At this time, the programmer needs to judge that this text box is only read-only, and then introduces the corresponding CSS, there is no doubt that the workload is increased.
Here, use Expression to provide a solution, only need each page to introduce this CSS, and the other is determined by the program own, as follows: