• Q&A
  • 수강신청
  • 회원가입
  • 로그인

[selector] CSS - :read-write 가상선택자 - 읽고쓰기가능요소 (= readonly속성없는요소, IE13)

:read-write 예제

 

<style>

input:-moz-read-write {background-color: yellow;}  /* Firefox */

input:read-write {background-color: yellow;}


input:-moz-read-only {background-color: pink;}  /* Firefox */

input:read-only {background-color: pink;}  

</style>


<p>읽기 O , 쓰기 O : <input value="Homzzang.com"></p>

<p>읽기 O , 쓰기 X : <input readonly value="Homzzang.com"></p>

 

결과보기

 


자동로그인
Since 2012