help.html 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <filter><script src="../script/lib/common.js"></script><script src="../script/lib/jquery/jquery.min.js"></script></filter>
  5. <meta charset="utf-8">
  6. <title>帮助中心 by Dever</title>
  7. <meta name="keywords" content="" />
  8. <meta name="description" content="" />
  9. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  10. <meta name="viewport" content="width=device-width, initial-scale=1">
  11. <link rel="stylesheet" type="text/css" href="../script/lib/bootstrap/css/bootstrap.min.css" />
  12. <link rel="stylesheet" type="text/css" href="../script/lib/doc/doc.min.css">
  13. <style>
  14. body,html
  15. {
  16. background-color:white;
  17. }
  18. .bs-docs-container
  19. {
  20. margin-bottom:40px;
  21. }
  22. .bs-docs-header
  23. {
  24. margin-top: -20px;
  25. }
  26. </style>
  27. </head>
  28. <body>
  29. <div class="bs-docs-header" id="top" tabindex="-1">
  30. <div class="container">
  31. <h1>起步</h1>
  32. <p>简要介绍 Bootstrap,以及如何下载、使用,还有基本模版和案例,等等。</p>
  33. </div>
  34. </div>
  35. <div class="container bs-docs-container">
  36. <div class="row">
  37. <div class="col-md-9" role="main">
  38. <div class="bs-docs-section">
  39. <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>
  40. <div>
  41. <p class="lead">Bootstrap 会自动帮你针对不同的屏幕尺寸调整你的页面,使其在各个尺寸的屏幕上表现良好。下面我们列出了如何禁用这一特性,就像这个<a href="../examples/non-responsive/">非响应式布局实例</a>页面一样。</p>
  42. <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>
  43. <ol>
  44. <li>移除 <a href="../css/#overview-mobile">此 CSS 文档</a>中提到的设置浏览器视口(viewport)的标签:<code>&lt;meta&gt;</code>。</li>
  45. <li>通过为 <code>.container</code> 类设置一个 <code>width</code> 值从而覆盖框架的默认 width 设置,例如 <code>width: 970px !important;</code> 。请确保这些设置全部放在默认的 Bootstrap CSS 文件的后面。注意,如果你把它放到媒体查询中,也可以略去 <code>!important</code> 。</li>
  46. <li>如果使用了导航条,需要移除所有导航条的折叠和展开行为。</li>
  47. <li>对于栅格布局,额外增加 <code>.col-xs-*</code> 类或替换掉 <code>.col-md-*</code> 和 <code>.col-lg-*</code>。 不要担心,针对超小屏幕设备的栅格系统能够在所有分辨率的环境下展开。</li>
  48. </ol>
  49. <p>针对 IE8 仍然需要额外引入 Respond.js 文件(由于仍然利用了浏览器对媒体查询(media query)的支持,因此还需要做处理)。这样就禁用了 Bootstrap 对移动设备的响应式支持。</p>
  50. <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>
  51. <p>我们已经按照上面的步骤制作了一份案例。仔细阅读其源码并对照上面的步骤实践一下吧。</p>
  52. <p>
  53. <a href="../examples/non-responsive/" class="btn btn-primary">非响应式布局实例</a>
  54. </p>
  55. </div>
  56. </div>
  57. </div>
  58. <div class="col-md-3" role="complementary">
  59. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix-top">
  60. <ul class="nav bs-docs-sidenav" style="overflow: auto;height: 600px;">
  61. <li class="">
  62. <a href="#download">下载</a>
  63. </li>
  64. <li class="">
  65. <a href="#whats-included">包含的内容</a>
  66. <ul class="nav">
  67. <li class=""><a href="#whats-included-precompiled">预编译版</a></li>
  68. <li class=""><a href="#whats-included-source">Bootstrap 源码</a></li>
  69. </ul>
  70. </li>
  71. <li class="">
  72. <a href="#template">基本模板</a>
  73. </li>
  74. </ul>
  75. </nav>
  76. </div>
  77. </div>
  78. </div> <!-- /container -->
  79. <div class="footer" style="display:none;">
  80. <div class="container small text-center">
  81. <p id="dever_copyright">
  82. <span>Made With Love By The EST Group.</span>
  83. </p>
  84. <p id="dever_icp">
  85. <span>Made With Love By The EST Group.</span>
  86. </p>
  87. </div>
  88. </div>
  89. <div id="dever_code"></div>
  90. <script type="text/javascript" src="../script/lib/jquery/jquery.min.js"></script>
  91. <script type="text/javascript" src="../script/lib/bootstrap/js/bootstrap.min.js"></script>
  92. <script type="text/javascript" src="../script/lib/doc/doc.min.js"></script>
  93. <script type="text/javascript" src="../script/lib/doc/main.js"></script>
  94. </body>
  95. </html>