우주먼지 개발 log
[javascript] 브라우저 기본 css style 초기화 : reset.css 본문
반응형
그냥 나중에 가져다 쓰려고 저장~
검색해서 찾아서 써도 되지만...
reset.css 파일 만들기
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
html 파일에 추가
<link rel="stylesheet" href="./reset.css" />
반응형
'javascript' 카테고리의 다른 글
[javascript] formdata (0) | 2024.01.12 |
---|---|
[css] 애니메이션 @keyframes (0) | 2023.12.13 |
javascript 메소드의 불변성 확인 사이트 : Does it mutate? (0) | 2023.11.28 |
[javascript][배열 메소드] reduce() 이해하기 (0) | 2023.11.28 |
[javascript][css] border-radius / 메뉴모양 만들기 (0) | 2023.11.13 |