Home  >  Article  >  Web Front-end  >  Bootstrap组件之响应式导航条_html/css_WEB-ITnose

Bootstrap组件之响应式导航条_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:32:231429browse

响应式导航条:在PC和平板中默认要显示所有的内容;但在手机中导航条中默认只显示“LOGO/Brand”,以及一个“菜单折叠展开按钮”,只有单击折叠按钮后才显示所有的菜单项。

  基础class: .navbar   

 1、Bootstrap中导航条的按位置:

  1)顶部导航条

  2)底部导航条

    Bootstrap中导航条的按颜色:

    1)浅色底深色的字 .navbar-default

    2)深色底浅色的字 .navbar-inverse

    Bootstrap中导航条的按定位:

    1)相对定位position: relative 默认值

    2)固定定位position: fixed      .navbar-fixed-top/bottom

 2、导航条的结构:

  

  

  

    

    

      

      

    

    

    

      

          

      

      

      

    

  

 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn