zoukankan      html  css  js  c++  java
  • bootstrap左侧边栏

    之前都是想直接把导航栏放左边,但是会占一整行

    网上找了好久,看到用bootstrap响应式布局,可以比较简单实现

    经典的,可以参考:http://demo.qianduanblog.com/3150/8.html#

    4个div可以搞定:

    <div class="container">
        <div class="row">
            <div class="col-lg-1 modal-content">
                左边栏<br />
                左边栏<br />
                左边栏<br />
                左边栏<br />
                左边栏<br />
            </div>
            <div class="col-lg-11 modal-content">
                右侧内容。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。<br />
                右侧内容。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。<br />
                右侧内容。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。<br />
                右侧内容。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。<br />
                右侧内容。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。<br />
                右侧内容。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。<br />
            </div>
        </div>
    </div>

    效果:
     
  • 相关阅读:
    Ubuntu的防火墙UFW
    使用Xshell连接Ubuntu
    Markdown 11种基本语法
    Git Push 避免用户名和密码方法
    "git rm" 和 "rm" 的区别
    无限级分类实现思路
    1. Git 克隆代码
    Git 笔记
    git 远程分支创建与推送
    ci 笔记
  • 原文地址:https://www.cnblogs.com/dannyyao/p/6261868.html
Copyright © 2011-2022 走看看