🔗 GitHub https://github.com/qwerty00ui88/To-Do-List
🔗 배포 링크 https://qwerty00ui88.github.io/To-Do-List/
배포하고 iPhone으로 테스트해 보니 textarea
에 의도하지 않은 스타일이 적용되었다.
input
, textarea
, button
에는 브라우저 기본 스타일이 적용될 수 있다고 한다. 하나씩 해결해 보자.
/* src/index.css */
input, textarea, button {
appearance: none; /*브라우저 기본 스타일 제거*/
-moz-appearance: none; /*Mozilla Firefox 기본 스타일 제거*/
-webkit-appearance: none; /*WebKit 기반 브라우저 기본 스타일 제거*/
border-radius: 0; /*브라우저 기본 테두리 스타일 제거*/
-moz-border-radius: 0; /*Mozilla Firefox 기본 테두리 스타일 제거*/
-webkit-border-radius: 0; /*WebKit 기반 브라우저 기본 테두리 스타일 제거*/
}
/* src/index.css */
input:focus, textarea:focus {
outline: none;
}
<!-- public/index.html -->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
앞으로 프로젝트 시작 전 브라우저 기본 스타일 제거 후 시작하자!