CSS:읽기-쓰기 선택기를 사용하여 "읽기 전용" 속성이 없는 요소를 선택합니다.
예
다음 코드를 실행하여 구현을 시도할 수 있습니다. 읽기-쓰기 선택기
<!DOCTYPE html>
<html>
<head>
<style>
input:read-write {
background-color: blue;
color: white;
}
</style>
</head>
<body>
<form>
Subject: <input type = "text" name = "subject" value = "Java"><br>
Student: <input type = "text" name = "student" readonly value = "Amit"><br>
</form>
</body>
</html>