bootstrap使用笔记

前端开发 作者: 2024-08-25 22:50:01
本文翻译自【http://getbootstrap.com/2.3.2/scaffolding.html#gridSystem】 1、需要在H5的文档声明中使用; 2、如下一个简单的两列布局,先添加一
<div class="row">
  ="span4">...</div="span8">
>
="span9">
    Level 1 column
    >
      ="span6">Level 2="span3">
    >
="row-fluid">
="span4 offset2">
="span12"
    Fluid 12
    
        Fluid 6
        >
          >Fluid 6>
        >
body="container"
    ...
  >
="container-fluid"="span2"<!--Sidebar content-->
    ="span10"Body content>
meta name="viewport" content="width=device-width,initial-scale=1.0"link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
Label Layout width Column width Gutter width
Large display 1200px and up 70px 30px
Default 980px and up 60px 20px
Portrait tablets 768px and above 42px 20px
Phones to tablets 767px and below Fluid columns,no fixed widths
Phones 480px and below Fluid columns,no fixed widths
/* Large desktop */
@media (min-width: 1200px) { ... }
 
 Portrait tablet to landscape and desktop 
@media (min-width: 768px) and (max-width: 979px) { Landscape phone to portrait tablet 
@media (max-width: 767px) { Landscape phones and down 
@media (max-width: 480px) { ... }
Class Phones767px and below Tablets979px to 768px DesktopsDefault
.visible-phone Visible
.visible-tablet Visible
.visible-desktop Visible
.hidden-phone Visible Visible
.hidden-tablet Visible Visible
.hidden-desktop Visible Visible

When to use

原创声明
本站部分文章基于互联网的整理,我们会把真正“有用/优质”的文章整理提供给各位开发者。本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。
本文链接:http://www.jiecseo.com/news/show_68641.html
bootstrap使用笔记