Text box
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>无标题文档</title><style>body{margin:0px; padding:0px; font-size:12px; background:#999 }</style></head><body><input type="text" value="你好,背景色为黑色的文本框禁用后,文字模糊" style="background:#3d4045; border:1px #666 solid; width:300px; margin:100px" disabled="disabled" /></body></html>
Change disabled to readonly
disabled="disabled"
Change to
readonly = "readonly"
No, readonly="readonly" is not disabled in the true sense. If I want to disable post-transmission, it will not be transmitted. If readonly="readonly" is used, the value inside will still be when submitted. It will be transferred, and it will also get the cursor focus. So this method doesn't work.