扫码下载编程狮APP
<!DOCTYPE html> <html> <head> <style> input[disabled] { background: yellow; } </style> </head> <body> <input id="foo" type="text"> <script> document.getElementById('foo').disabled = true; </script> </body> </html>
The code above is rendered as follows:
联系方式:
扫描二维码
下载编程狮App
扫码关注 领资料包