Sublime Text
<!DOCTYPE html> <html> <head> <style type="text/css"> input[type="text"]:enabled{ background-color:yellow; } input[type="checkbox"]:enabled{ height: 30px; width: 30px; } </style> </head> <body> <input type="text"><br><br> <input type="text" enabled><br><br> <input type="text" disabled><br><br> <input type="checkbox"> Tiểu Học<br> <input type="checkbox" enabled> Trung Học<br> <input type="checkbox" disabled> Đại Học <p>Lưu ý: Mặc định phần tử ở trạng thái enabled</p> </body> </html>
<!DOCTYPE html> <html> <head> <style type="text/css"> input[type="text"]:enabled{ background-color:yellow; } input[type="checkbox"]:enabled{ height: 30px; width: 30px; } </style> </head> <body> <input type="text"><br><br> <input type="text" enabled><br><br> <input type="text" disabled><br><br> <input type="checkbox"> Tiểu Học<br> <input type="checkbox" enabled> Trung Học<br> <input type="checkbox" disabled> Đại Học <p>Lưu ý: Mặc định phần tử ở trạng thái enabled</p> </body> </html>