WEB/CSS

[css] placeholder 디자인 변경

나나나나나나나ㅏ나난ㄴ나ㅏ나나 2019. 12. 24. 18:34
728x90

input type=text에 적용할 수 있는 placeholder 색이나 기울기 등을 변경하고 싶을때

 

        input::-webkit-input-placeholder {
            color: rgb(165, 164, 164);
        }
        input:-ms-input-placeholder {
            color: rgb(165, 164, 164);
        }

를 이용하면 일반 text와 달리 placeholder 만 따로 디자인을 변경할 수있다

728x90