크로스 브라우징...
모든 브라우저에서 똑같이 보여야하는것이죠.
대부분 크로스브라우징이 잘 안되는건 같은 html tag라도 지정하지 않은 margin이나 padding의 기본값이 다르기 때문입니다!! (체크박스에 기본마진값이 있다니!!)
고로 크로스브라우징을 쉽게 하려면 문서작성에 사용한 html tag에 관해 모든 margin과 padding 값을 css 최상단에 0으로 선언 한 후 진행하면됩니다. (인풋 텍스트 height를 30px로 지정하면 항상 크롬에서 32px로 표기되었던 지난날 ㅠㅠ...기본 padding값이 들어있을줄이야...)
기본적인 사항이지만 스킨이라던지 홈페이지에서 일부분만 변경할 시 놓치는 부분이어서...
모든 브라우저에서 똑같이 보여야하는것이죠.
대부분 크로스브라우징이 잘 안되는건 같은 html tag라도 지정하지 않은 margin이나 padding의 기본값이 다르기 때문입니다!! (체크박스에 기본마진값이 있다니!!)
고로 크로스브라우징을 쉽게 하려면 문서작성에 사용한 html tag에 관해 모든 margin과 padding 값을 css 최상단에 0으로 선언 한 후 진행하면됩니다. (인풋 텍스트 height를 30px로 지정하면 항상 크롬에서 32px로 표기되었던 지난날 ㅠㅠ...기본 padding값이 들어있을줄이야...)
기본적인 사항이지만 스킨이라던지 홈페이지에서 일부분만 변경할 시 놓치는 부분이어서...
댓글 8개
body,div,p,h1,h2,h3,h4,h5,h6,ul,ol,li,dl,dt,dd,table,th,td,form,fieldset,legend,input,textarea,blockquote,button{margin:0;padding:0;-webkit-text-size-adjust:none}
body,input,textarea,select,table,button{color:#000;font-family:'dotum','돋움','AppleGothic',sans-serif;font-size:100%;font-weight:normal;}
table {border-collapse:collapse; border-spacing:0;}
img,fieldset {border:0;}
img,input,select,textarea{vertical-align:top;}
address,caption,cite,code,dfn,em,strong,th,var {font-style:normal; font-weight:normal;}
strong {font-weight:bold;}
ol,ul {list-style:none;}
caption,th {text-align:left;}
h1,h2,h3,h4,h5,h6 {font-size:100%;}
abbr,acronym {border:0;}
이런식으로 최상단에 먼저 css 정의하고 작업한다는 말이지요?ㅎ 감사합니다
body,input,textarea,select,table,button{color:#000;font-family:'dotum','돋움','AppleGothic',sans-serif;font-size:100%;font-weight:normal;}
table {border-collapse:collapse; border-spacing:0;}
img,fieldset {border:0;}
img,input,select,textarea{vertical-align:top;}
address,caption,cite,code,dfn,em,strong,th,var {font-style:normal; font-weight:normal;}
strong {font-weight:bold;}
ol,ul {list-style:none;}
caption,th {text-align:left;}
h1,h2,h3,h4,h5,h6 {font-size:100%;}
abbr,acronym {border:0;}
이런식으로 최상단에 먼저 css 정의하고 작업한다는 말이지요?ㅎ 감사합니다
게시글 목록
| 번호 | 제목 |
|---|---|
| 914 | |
| 907 | |
| 905 | |
| 900 | |
| 895 | |
| 894 | |
| 892 | |
| 889 | |
| 885 | |
| 882 | |
| 879 | |
| 874 | |
| 864 | |
| 859 | |
| 857 | |
| 843 | |
| 832 | |
| 828 | |
| 826 | |
| 825 | |
| 822 | |
| 815 | |
| 811 | |
| 810 | |
| 783 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기