view.html 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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>Doc 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. <!-- Static navbar -->
  30. <nav class="navbar navbar-default navbar-fixed-tops navbar-static-top dever-nav">
  31. <div class="container">
  32. <div class="navbar-header">
  33. <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
  34. <span class="sr-only">Toggle navigation</span>
  35. <span class="icon-bar"></span>
  36. <span class="icon-bar"></span>
  37. <span class="icon-bar"></span>
  38. </button>
  39. <a class="navbar-brand" id="dever-logo" href="#">DeverDoc</a>
  40. </div>
  41. <div class="navbar-collapse collapse" id="navbar">
  42. <ul class="nav navbar-nav" id="dever_navbar">
  43. <li class="active"><a href="#">社区</a></li>
  44. <li><a href="#about">博客</a></li>
  45. <li><a href="#contact">关于</a></li>
  46. <li><a href="#about">文档</a></li>
  47. </ul>
  48. <div class="navbar-right">
  49. <form method="GET" action="" accept-charset="UTF-8" class="navbar-form navbar-left" target="_blank">
  50. <div class="form-group">
  51. <input class="form-control search-input mac-style" placeholder="搜索" name="q" type="text">
  52. </div>
  53. </form>
  54. </div>
  55. </div><!--/.nav-collapse -->
  56. </div>
  57. </nav>
  58. <div class="bs-docs-header" id="top" tabindex="-1">
  59. <div class="container">
  60. <h1>起步</h1>
  61. <p>简要介绍 Bootstrap,以及如何下载、使用,还有基本模版和案例,等等。</p>
  62. </div>
  63. </div>
  64. <div class="container bs-docs-container">
  65. <div class="row">
  66. <div class="col-md-9" role="main">
  67. <div class="bs-docs-section">
  68. <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>
  69. <div>
  70. <p class="lead">Bootstrap 会自动帮你针对不同的屏幕尺寸调整你的页面,使其在各个尺寸的屏幕上表现良好。下面我们列出了如何禁用这一特性,就像这个<a href="../examples/non-responsive/">非响应式布局实例</a>页面一样。</p>
  71. <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>
  72. <ol>
  73. <li>移除 <a href="../css/#overview-mobile">此 CSS 文档</a>中提到的设置浏览器视口(viewport)的标签:<code>&lt;meta&gt;</code>。</li>
  74. <li>通过为 <code>.container</code> 类设置一个 <code>width</code> 值从而覆盖框架的默认 width 设置,例如 <code>width: 970px !important;</code> 。请确保这些设置全部放在默认的 Bootstrap CSS 文件的后面。注意,如果你把它放到媒体查询中,也可以略去 <code>!important</code> 。</li>
  75. <li>如果使用了导航条,需要移除所有导航条的折叠和展开行为。</li>
  76. <li>对于栅格布局,额外增加 <code>.col-xs-*</code> 类或替换掉 <code>.col-md-*</code> 和 <code>.col-lg-*</code>。 不要担心,针对超小屏幕设备的栅格系统能够在所有分辨率的环境下展开。</li>
  77. </ol>
  78. <p>针对 IE8 仍然需要额外引入 Respond.js 文件(由于仍然利用了浏览器对媒体查询(media query)的支持,因此还需要做处理)。这样就禁用了 Bootstrap 对移动设备的响应式支持。</p>
  79. <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>
  80. <p>我们已经按照上面的步骤制作了一份案例。仔细阅读其源码并对照上面的步骤实践一下吧。</p>
  81. <p>
  82. <a href="../examples/non-responsive/" class="btn btn-primary">非响应式布局实例</a>
  83. </p>
  84. </div>
  85. </div>
  86. </div>
  87. <div class="col-md-3" role="complementary">
  88. <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix-top">
  89. <ul class="nav bs-docs-sidenav" style="overflow: auto;height: 600px;">
  90. <li class="">
  91. <a href="#download">下载</a>
  92. </li>
  93. <li class="">
  94. <a href="#whats-included">包含的内容</a>
  95. <ul class="nav">
  96. <li class=""><a href="#whats-included-precompiled">预编译版</a></li>
  97. <li class=""><a href="#whats-included-source">Bootstrap 源码</a></li>
  98. </ul>
  99. </li>
  100. <li class="">
  101. <a href="#template">基本模板</a>
  102. </li>
  103. </ul>
  104. <a class="back-to-top" href="#top">
  105. 返回顶部
  106. </a>
  107. </nav>
  108. </div>
  109. </div>
  110. </div> <!-- /container -->
  111. <div class="footer" style="display:none;">
  112. <div class="container small text-center">
  113. <p id="dever_copyright">
  114. <span>Made With Love By The EST Group.</span>
  115. </p>
  116. <p id="dever_icp">
  117. <span>Made With Love By The EST Group.</span>
  118. </p>
  119. </div>
  120. </div>
  121. <div id="dever_code"></div>
  122. <script type="text/javascript" src="../script/lib/jquery/jquery.min.js"></script>
  123. <script type="text/javascript" src="../script/lib/bootstrap/js/bootstrap.min.js"></script>
  124. <script type="text/javascript" src="../script/lib/doc/doc.min.js"></script>
  125. <script type="text/javascript" src="../script/lib/doc/main.js"></script>
  126. </body>
  127. </html>