주 메뉴 열기

wwiki β

바뀜

Bootstrap

192 바이트 추가됨, 2023년 11월 30일 (목) 00:34
Introduction
<syntaxhighlight lang="html">
<!doctype html>
<html lang="enko">
<head>
<meta charset="utf-8">
</html>
</syntaxhighlight>
 
* width: 픽셀(1~10000)이나 디바이스 너비
 
* initial-scale: 페이지가 처음 로드되었을 때 줌 레벨 (0.1~10, default: 1)
==== Important globals ====
===== HTML5 doctype =====
Bootstrap requires the use of the HTML5 doctype. Without it, you’ll see some funky (지독한) and incomplete styling.<syntaxhighlight lang="html">
<!doctype html>
<html lang="enko">
...
</html>
</syntaxhighlight>
===== Responsive Viewport meta tag =====Bootstrap is developed ''mobile first''우리는 모바일 디바이스에 코드를 최적화하고, a strategy in which we optimize code for CSS 미디어 쿼리를 사용해서 필요한 컴포넌트를 scale up하는 mobile devices first and then scale up components as necessary using CSS media queries전략으로 부트스트랩은 개발한다. To ensure proper rendering and touch zooming for all devices모든 디바이스에서 적절한 렌더링과 터치 줌을 보장하기 위해서, add the responsive viewport meta tag to your <code>태그를 <head></code>에 넣어라.<syntaxhighlight lang="html">
<meta name="viewport" content="width=device-width, initial-scale=1">
</syntaxhighlight>
편집
2,431