123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- <!DOCTYPE html>
- <html lang="zh-CN">
- <head>
- <filter><script src="../../lib/common.js"></script><script src="../../lib/jquery/jquery.min.js"></script></filter>
- <meta charset="utf-8">
- <title>Doc by Dever</title>
- <meta name="keywords" content="" />
- <meta name="description" content="" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" type="text/css" href="../public/bootstrap/css/bootstrap.min.css" />
- <link rel="stylesheet" type="text/css" href="../public/doc/doc.min.css">
- <style>
- body,html
- {
- background-color:white;
- }
- .bs-docs-container
- {
- margin-bottom:40px;
- }
- .bs-docs-header
- {
- margin-top: -20px;
- }
- </style>
- </head>
- <body>
- <!-- Static navbar -->
- <nav class="navbar navbar-default navbar-fixed-tops navbar-static-top dever-nav">
- <div class="container">
- <div class="navbar-header">
- <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
- <span class="sr-only">Toggle navigation</span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- <span class="icon-bar"></span>
- </button>
- <a class="navbar-brand" id="dever-logo" href="#">DeverDoc</a>
- </div>
- <div class="navbar-collapse collapse" id="navbar">
- <ul class="nav navbar-nav" id="dever_navbar">
- <li class="active"><a href="#">社区</a></li>
- <li><a href="#about">博客</a></li>
- <li><a href="#contact">关于</a></li>
- <li><a href="#about">文档</a></li>
- </ul>
- <div class="navbar-right">
- <form method="GET" action="" accept-charset="UTF-8" class="navbar-form navbar-left" target="_blank">
- <div class="form-group">
- <input class="form-control search-input mac-style" placeholder="搜索" name="q" type="text">
- </div>
- </form>
- </div>
- </div><!--/.nav-collapse -->
- </div>
- </nav>
- <div class="bs-docs-header" id="top" tabindex="-1">
- <div class="container">
- <h1>起步</h1>
- <p>简要介绍 Bootstrap,以及如何下载、使用,还有基本模版和案例,等等。</p>
- </div>
- </div>
- <div class="container bs-docs-container">
- <div class="row">
- <div class="col-md-9" role="main">
- <div class="bs-docs-section">
- <h1 id="disable-responsive" class="page-header"><a class="anchorjs-link " href="#disable-responsive" aria-label="Anchor link for: disable responsive" data-anchorjs-icon="" style="font-family: anchorjs-icons; font-style: normal; font-variant: normal; font-weight: normal; position: absolute; margin-left: -1em; padding-right: 0.5em;"></a><span>禁止响应式布局</span></h1>
- <div>
- <p class="lead">Bootstrap 会自动帮你针对不同的屏幕尺寸调整你的页面,使其在各个尺寸的屏幕上表现良好。下面我们列出了如何禁用这一特性,就像这个<a href="../examples/non-responsive/">非响应式布局实例</a>页面一样。</p>
- <h2 id=""><a class="anchorjs-link " href="#" aria-label="Anchor link for: " data-anchorjs-icon="" style="font-family: anchorjs-icons; font-style: normal; font-variant: normal; font-weight: normal; position: absolute; margin-left: -1em; padding-right: 0.5em;"></a>禁止响应式布局有如下几步:</h2>
- <ol>
- <li>移除 <a href="../css/#overview-mobile">此 CSS 文档</a>中提到的设置浏览器视口(viewport)的标签:<code><meta></code>。</li>
- <li>通过为 <code>.container</code> 类设置一个 <code>width</code> 值从而覆盖框架的默认 width 设置,例如 <code>width: 970px !important;</code> 。请确保这些设置全部放在默认的 Bootstrap CSS 文件的后面。注意,如果你把它放到媒体查询中,也可以略去 <code>!important</code> 。</li>
- <li>如果使用了导航条,需要移除所有导航条的折叠和展开行为。</li>
- <li>对于栅格布局,额外增加 <code>.col-xs-*</code> 类或替换掉 <code>.col-md-*</code> 和 <code>.col-lg-*</code>。 不要担心,针对超小屏幕设备的栅格系统能够在所有分辨率的环境下展开。</li>
- </ol>
- <p>针对 IE8 仍然需要额外引入 Respond.js 文件(由于仍然利用了浏览器对媒体查询(media query)的支持,因此还需要做处理)。这样就禁用了 Bootstrap 对移动设备的响应式支持。</p>
- <h2 id="bootstrap"><a class="anchorjs-link " href="#bootstrap" aria-label="Anchor link for: bootstrap" data-anchorjs-icon="" style="font-family: anchorjs-icons; font-style: normal; font-variant: normal; font-weight: normal; position: absolute; margin-left: -1em; padding-right: 0.5em;"></a>禁止响应式特性的 Bootstrap 模版</h2>
- <p>我们已经按照上面的步骤制作了一份案例。仔细阅读其源码并对照上面的步骤实践一下吧。</p>
- <p>
- <a href="../examples/non-responsive/" class="btn btn-primary">非响应式布局实例</a>
- </p>
- </div>
- </div>
- </div>
- <div class="col-md-3" role="complementary">
- <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix-top">
- <ul class="nav bs-docs-sidenav">
- <li class="">
- <a href="#download">下载</a>
- </li>
- <li class="">
- <a href="#whats-included">包含的内容</a>
- <ul class="nav">
- <li class=""><a href="#whats-included-precompiled">预编译版</a></li>
- <li class=""><a href="#whats-included-source">Bootstrap 源码</a></li>
- </ul>
- </li>
- <li class="">
- <a href="#template">基本模板</a>
- </li>
- </ul>
- <a class="back-to-top" href="#top">
- 返回顶部
- </a>
- </nav>
- </div>
- </div>
- </div> <!-- /container -->
-
- <div class="footer" style="display:none;">
- <div class="container small text-center">
- <p id="dever_copyright">
- <span>Made With Love By The EST Group.</span>
- </p>
- <p id="dever_icp">
- <span>Made With Love By The EST Group.</span>
- </p>
- </div>
- </div>
- <div id="dever_code"></div>
- <script type="text/javascript" src="../public/jquery/jquery.min.js"></script>
- <script type="text/javascript" src="../public/bootstrap/js/bootstrap.min.js"></script>
- <script type="text/javascript" src="../public/doc/doc.min.js"></script>
- <script type="text/javascript" src="../public/doc/main.js"></script>
- </body>
- </html>
|