#PersonalInfoChk{-webkit-appearance: none;-moz-appearance: none;appearance: none;}
속성값 -webkit-appearance
모바일 Safari 나 Chrome 에서 input, textarea 은 내부에 각 디자인 css 값이 들어가기 때문에 아래처럼 변경을 해줘야 원하는 원하는 디자인대로 표현이 가능하다.
/* Remove inner shadow from inputs on mobile iOS */
textarea, input {
-webkit-appearance: none;
-webkit-border-radius: 0;
}
/* input에서 라디오, 체크박스를 살리는 방법 */
-webkit-appearance:checkbox;
select 박스에서 기본 화살표를 삭제하는 방법도 동일한데, 아래의 소스처럼 select에 스타일 적용한다.
select::-ms-expand { display: none; }
select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background: url(/img/sub/select_icon.png) no-repeat 90% 50%;
}
'CSS' 카테고리의 다른 글
css에서 폰트 속성 한줄로 나타내기 (0) | 2023.07.17 |
---|---|
폰트 픽셀을 부드럽게 표현할 수 있는 "-webkit-font-smoothing: antialiased;" (0) | 2023.07.14 |
nth-child(n번째부터 n번째까지 css 적용) (0) | 2023.07.14 |
IE만 적용되는 css 미디어쿼리 (0) | 2023.07.14 |
아이폰 기본 스타일 제거하는 방법 (0) | 2023.07.14 |