Computer >> 컴퓨터 >  >> 프로그램 작성 >> CSS

CSS의 역할:읽기-쓰기 선택기

<시간/>

CSS :read-write 선택기를 사용하여 '읽기' 및 '쓰기' 가능한 요소를 선택하세요.

다음 코드를 실행하여 :read-write 선택기를 구현할 수 있습니다.

<!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>