bootstrap
1.Grid 12 columns. 3-6-3、4-8、3-5-4、2-8-2
h t t p ://w w w .bootcss.com/p/jquery-ui-bootstrap/
v 3. bo otcss.com/getting-started/
v 3. boot c s s.com / c s s /
2. Responsive
- <div class="row">
- <div class="span8">...</div>
- <div class="span4">...</div>
- </div>
<link href="/css/bootstrap-responsive.css" rel="stylesheet">media query (min-width and max-width)
- <link rel="stylesheet" href="base.css" />
- <link rel="stylesheet" media="(min-width: 1200px)" href="large.css" />
- <link rel="stylesheet" media="(min-width: 768px) and (max-width: 979px)"
- href="tablet.css" />
- <link rel="stylesheet" media="(max-width: 767px)" href="tablet.css" />
- <link rel="stylesheet" media="(max-width: 480px)" href="phone.css" />
3 jquery
- /* large screen */
- @media (min-width: 1200px) { .. desktop:1200px col:70px space:30px }
- /* tablet */
- @media (min-width: 768px) and (max-width: 979px) {
- ... tablet:980px col:60px spacing:20px.
768px 42px spacing:20px}- /* phone */
- @media (max-width: 767px) { ...fluid}
- /* phone */
- @media (max-width: 480px) { ... fluid }
h t t p ://w w w .bootcss.com/p/jquery-ui-bootstrap/
v 3. bo otcss.com/getting-started/
v 3. boot c s s.com / c s s /
评论
发表评论