티스토리 뷰
iOS에서 기본 적용된 input shadow 제거하기
참고: https://developer.mozilla.org/en-US/docs/Web/CSS/appearance
내용

작업 중 위와 같이 원인 모를 shadow가 생겨 골치 아팠는데 구글링을 해보니 iOS에 기본적으로 적용된 스타일이라고 한다.
appearance 라는 값을 없애주면 된다.
구현
input {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
}
'Programming > HTML & CSS' 카테고리의 다른 글
class와 id 선택자를 중심으로 살펴보는 효율적인 렌더링을 위한 CSS 활용 (0) | 2021.10.12 |
---|---|
html button 요소에 type을 지정하는 이유 (0) | 2021.09.13 |
HTML/CSS 네이밍 시 container와 wrapper의 차이 (3) | 2021.06.18 |
애니메이션 최적화 (Reflow, Repainting) (0) | 2020.12.22 |
HTML checkbox 디자인 커스텀하기 (0) | 2020.12.18 |
댓글