view.html 4.8 KB

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