<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="css/bootstrap.min.css"/>
    <script language="JavaScript" src="js/jquery-3.js"></script>
    <style type="text/css">
        *{
            top: 0px;
            padding: 0px;
            text-decoration: none;
            list-style-type: none;
        }

.top-styl{
            height: 50px;
            border: 1px solid red;
            background-color: #000000;
        }
        .img-styl{
            width: 174px;
            height: 50px;
            background: url("imges/logo.png")no-repeat 0px 3px;
            background-size: contain;
            float: left;
        }
        .sousuo-styl{
            width: 187px;
            float: left;
        }
        .top-search-input{
            width: 150px;
            padding: 0 5px;
            height: 30px;
            border: 0;
            background: #363636;
            float: left;
            color: #ccc;
        }
        .top-search-submit{
            width: 30px;
            height: 30px;
            border: 0;
            background:  green url("imges/zoom.gif")center center no-repeat;
            float: left;
            cursor: pointer;          //光标指针
        }
        .dao-styll{
            float: left;
            font-size: 16px;
            width: 329px;
            margin-left: 33px;
            margin-top: 11px;

}
        .dao-styll li{
            float: left;
            position: relative;      //相对定位
            text-align: center;
            padding: 0 7px;
        }
        .dao-styll >li:hover{
            background-color: #999;
        }
        .dao-styll >li >a{
            color: #FFF;
            width: 100%;
            height: 34px;
            text-decoration: none;    //取消下划线
        }
        .dz-styl{
            float: right;
            margin: -19px -9px 6px 21px;
        }
        .imgs-styl{
            padding: 11px 0px 0px 114px;
            float: right;
            margin: 0px -98px -3px 8px;
        }
        .green-styl{
            color: green;
        }
        .zc-styl{
            color: white;
        }
        a{
            text-decoration: none;
        }
    </style>
</head>
<body>
    <div class="container-fluid">             //fluid表示用 百分比
        <div class="row">               //row  行
            <div class="top-styl col-md-12">        //col-md-12 每行桌面占12列
                <div class="row">
                    <div class=" col-md-offset-1 col-md-9">   //col-md-offset-1 列偏移1列
                        <div class="row">
                        <div class="col-md-3 col-xs-4">
                            <div class="img-styl"></div>
                        </div>
                            <div class="col-md-3 ">
                                <div class="sousuo-styl" style="padding-left: 7px; margin: 8px auto;">
                                    <input class="top-search-input" value="" type="text"><input
                                        class="top-search-submit" type="submit" value="" />
                                </div>
                            </div>
                            <div class="col-md-4 hidden-xs" style="padding: 0px">
                                <ul class="dao-styll">
                                    <li class=""><a href="#">风格</a>
                                    </li>
                                    <li class=""><a href="#">造型师</a></li>
                                    <li class=""><a href="#">众分享</a>
                                    </li>
                                    <li class=""><a href="#">我的美丽衣橱</a></li>
                                </ul>
                            </div>
                            <div class="col-md-2">
                                <div class="imgs-styl">
                                    <img src="imges/sina.gif">
                                </div>
                                <div class="dz-styl">
                                    <span><a href="#" class="green-styl">登录</a>&nbsp;|&nbsp;</span><span>
                                    <a href="#" class="zc-styl">注册</a></span>
                                </div>
                            </div>

</div>
                    </div>
                </div>
            </div>
        </div>

<div class="row">
                <div class="visible-md"><h1>当前为桌面显示</h1></div>   //visible默认占满整行 
                <div class="visible-sm"><h1>当前为平面显示</h1></div>
                <div class="visible-xs"><h1>当前为手机显示</h1></div>
        </div>
    </div>
</body>
</html>

效果显示图:

响应式框架Bootstrap栅格系统的更多相关文章

  1. 最常用前端框架BootStrap——栅格系统

      前  言   Bootstrap 提供了一套响应式.移动设备优先的流式栅格系统,随着屏幕或视口(viewport)尺寸的增加,系统会自动分为最多12列.它包含了易于使用的预定义类,还有强大的mix ...

  2. Bootstrap4响应式布局之栅格系统

    前面说了Bootstrap4的下载和简单使用,现在我们接着往下学习,Bootstrap4的响应式布局主要依靠栅格系统来实现的.面老K先来讲解一下Bootstrap4的栅格系统,让你能够更快的了解Boo ...

  3. 响应式框架Bootstrap

    概念:Bootstrap将会根据你的屏幕的大小来调整HTML元素的大小 -- 强调 响应式设计的概念. 通过响应式设计,你无需再为你的网站设计一个手机版的.它在任何尺寸的屏幕上看起来都会不错. Boo ...

  4. fcc 响应式框架Bootstrap 练习2

    text-primary 属性值使标题直接变成了红色,text-center使标题直接居中 <h2 class="text-primary  text-center"> ...

  5. bootstrap第一天,响应式布局,栅格系统运用

    <!DOCTYPE html><html lang="zh-CN"> <head> <meta charset="utf-8&q ...

  6. fcc 响应式框架Bootstrap 练习1

    需要通过添加下列代码到你的HTML开头来将Bootstrap添加到任意应用中: <link rel="stylesheet" href="//cdn.bootcss ...

  7. fcc 响应式框架Bootstrap 练习3

    class="container-fluid"控制宽度100% <div class="container-fluid"> <h3 class ...

  8. 【响应式】foundation栅格布局的“尝鲜”与“填坑”

      提到响应式,就不得不提两个响应式框架--bootstrap和foundation.在标题上我已经说明白啦,今天给大家介绍的是foundation框架. 何为"尝鲜"?就是带大伙 ...

  9. 巧用 BootStrap --- 栅格系统(布局)轻松搞定网页响应式布局!

    摘要:Bootstrap 为我们提供了一套响应式.移动设备优先的流式栅格系统,合理的使用栅格系统将会使得网站页面布局变得更加简单,在设置了媒体查询之后,响应式网站也无需再单独写了.接下来我以Boots ...

随机推荐

  1. Hawk-and-Chicken

    Hawk-and-Chicken Time Limit: 6000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) To ...

  2. windows 上rsync客户端使用方法

    1.1 获取 windows上实现rsync的软件(cwRsync) cwRsync是Windows 客户端GUI的一个包含Rsync的包装.您可以使用cwRsync快速远程文件备份和同步. 1.1. ...

  3. Java IO编程全解(五)——AIO编程

    转载请注明出处:http://www.cnblogs.com/Joanna-Yan/p/7794151.html 前面讲到:Java IO编程全解(四)--NIO编程 NIO2.0引入了新的异步通道的 ...

  4. tornado+WSGI+Apache

    1.原理 2.安装mod_wsgi http://pan.baidu.com/s/1sjsccWH configure的时候会找对应的python脚本,默认是/usr/bin/python 生成mod ...

  5. RabbitMQ之路由

    为了实现一个新功能:只订阅消息的一个子集,例如只需要把严重的错误日志信息写入日志文件(存储到磁盘上),但同时仍然把所有的日志信息输出到控制台中. 绑定(Bindings) 创建绑定 channel.q ...

  6. 我从.net转到java的心得和体会

    前言:由于有不少人咨询过我如果从.net转java,有什么技巧吗,我现在就分享我从.net转java的历程,这里不涉及两门语言的比较,记录的都是我个人的观点. 一:从.net转java的初衷 我是20 ...

  7. 5)C语言函数(C自考学习)

    函数的概念 在一个程序中,如果在不同地点多次执行某项操作,就可以把完成这项操作的程序段从程序中独立出来,定义成函数,而原来程序中凡需要进行这个操作的程序段可以只用"函数调用"来替代 ...

  8. _2Python_注释命名等基本操作

    注释:注解,解释 主要用于在代码中给代码标识出相关的文字提示(提高代码的可读性)或调试程序,方便别人阅读和自己日后修改. Python中注释分为两类.单行注释:单行注释以#号开头,在一行内,#号后面的 ...

  9. [最短路][部分转]P1027 Car的旅行路线

    题目描述 又到暑假了,住在城市A的Car想和朋友一起去城市B旅游.她知道每个城市都有四个飞机场,分别位于一个矩形的四个顶点上,同一个城市中两个机场之间有一条笔直的高速铁路,第I个城市中高速铁路了的单位 ...

  10. c语言捕捉异常

    闲暇之日阅读lua源码,发现原来C语言除goto之外的另一个处理异常的方法.既为setjump longjump两个函数,setjump相当于try,longjump相当于catch.与goto不同的 ...