surprise
2024-04-09 054e8e04d08bef2dc343376827aca7913e17f4f4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
<!DOCTYPE html>
<html lang="en">
 
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <title>Bootstrap Documentation</title>
  <link rel="stylesheet" href="./css/index.css" />
  <script src="./js/jquery.min.js"></script>
  
  <style>
    .HtmlBox {
      padding: 30px;
    }
 
    .HtmlBox h1 {
      font-size: 26px;
      color: #666;
      font-weight: 400;
      font-family: Graphik, sans-serif;
      font-feature-settings: normal;
      margin-bottom: 20px;
    }
 
    .HtmlBox h2 {
      font-size: 24px;
      color: #333;
      font-weight: 400;
      font-family: Graphik, sans-serif;
      font-feature-settings: normal;
      margin-bottom: 20px;
    }
 
    .HtmlBox h3 {
      font-size: 22px;
      color: #333;
      font-weight: 400;
      font-family: Graphik, sans-serif;
      font-feature-settings: normal;
      margin-bottom: 20px;
    }
 
    .HtmlBox p {
      font-size: 14px;
      font-weight: 400;
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, Liberation Sans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
      margin-bottom: 20px;
      line-height: 35px;
    }
 
    .HtmlBox a {
      color: #4b96e6;
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, Liberation Sans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
      font-size: 14px;
      word-wrap: break-word;
      letter-spacing: 1px;
    }
 
    .HtmlBox .code-wrapper {
      position: relative;
      margin-bottom: 20px;
      background: #f5f2f0;
    }
 
    .HtmlBox .copy-button {
      position: absolute;
      right: 10px;
      top: 10px;
      border-color: #666;
    }
 
    .img {
      margin-bottom: 20px;
    }
 
    .summary {
      font-size: 16px !important;
      font-weight: 400;
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, Liberation Sans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
      margin-bottom: 20px;
      line-height: 25px;
    }
 
    .HtmlBox_Ul {
      padding-left: 20px;
      padding-bottom: 20px;
      font-size: 14px !important;
      font-weight: 400;
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, Liberation Sans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
      margin-bottom: 20px;
      line-height: 25px;
      list-style: circle;
 
      a {
        color: #4b96e6;
        font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, Liberation Sans, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
        font-size: 14px;
        word-wrap: break-word;
        letter-spacing: 1px;
      }
    }
    button{
      border: transparent;
    }
    button:hover{
      color: #4b96e6;
    }
  </style>
</head>
 
<body>
 
  <div id="HtmlBox" class="HtmlBox">
 
    <h1>Introduction</h1>
    <p>
      Get started with Bootstrap, the world’s most popular framework for building responsive, mobile-first sites, with
      jsDelivr and a template starter page.
    </p>
    <h1>Quick start</h1>
    <p>Looking to quickly add Bootstrap to your project? Use jsDelivr, provided for free by the folks at jsDelivr. Using
      a package manager or need to download the source files? <a href="/getting-started/download/">Head to the downloads
        page.</a></p>
    <h3>CSS</h3>
    <p>Copy-paste the stylesheet <code>&lt;link&gt;</code> into your <code>&lt;head&gt;</code> before all other
      stylesheets to load our CSS.</p>
    <div class="code-wrapper ">
      <button class="copy-button" id="copy">Copy</button>
      <pre class="language-javascript"><code >
            function greet() {
              console.log("Hello, world!");
            }
      </code></pre>
    </div>
    <h1>JS</h1>
    <p>Many of our components require the use of JavaScript to function. Specifically, they require <a
        href="https://jquery.com">jQuery</a>, <a href="https://popper.js.org/">Popper.js</a>, and our own JavaScript
      plugins. Place the following <code class="highlighter-rouge">&lt;script&gt;</code>s near the end of your pages,
      right before the closing <code class="highlighter-rouge">&lt;/body&gt;</code> tag, to enable them. jQuery must
      come first, then Popper.js, and then our JavaScript plugins.</p>
    <p>We use <a href="https://blog.jquery.com/2016/06/09/jquery-3-0-final-released/">jQuery’s slim build</a>, but the
      full version is also supported.</p>
    <div class="code-wrapper">
      <button class="copy-button" id="copy">Copy</button>
      <pre><code class="language-javascript">
          function greet() {
            console.log("Hello, world!");
          }
          </code></pre>
    </div>
    <p>Curious which components explicitly require jQuery, our JS, and Popper.js? Click the show components link below.
      If you’re at all unsure about the general page structure, keep reading for an example page template.</p>
 
    <img src="http://192.168.11.88:8080/DeveloperGuide/background/1111.png" class="img" alt="Responsive image">
    <details>
      <summary class="summary">Show components requiring JavaScript</summary>
      <ul class="HtmlBox_Ul">
        <li>Alerts for dismissing</li>
        <li>Buttons for toggling states and checkbox/radio functionality</li>
        <li>Carousel for all slide behaviors, controls, and indicators</li>
        <li>Collapse for toggling visibility of content</li>
        <li>Dropdowns for displaying and positioning (also requires <a href="https://popper.js.org/">Popper.js</a>)</li>
        <li>Modals for displaying, positioning, and scroll behavior</li>
        <li>Navbar for extending our Collapse plugin to implement responsive behavior</li>
        <li>Tooltips and popovers for displaying and positioning (also requires <a
            href="https://popper.js.org/">Popper.js</a>)</li>
        <li>Scrollspy for scroll behavior and navigation updates</li>
      </ul>
 
 
    </details>
    <h1>Starter template</h1>
 
    <p>Be sure to have your pages set up with the latest design and development standards. That means using an HTML5
      doctype and including a viewport meta tag for proper responsive behaviors. Put it all together and your pages
      should look like this:</p>
 
    <div class="code-wrapper">
      <button class="copy-button" id="copy">Copy</button>
      <pre><code class="language-javascript">
        function greet() {
          console.log("Hello, world!");
        }
        </code></pre>
    </div>
 
    <p>That’s all you need for overall page requirements. Visit the <a href="/layout/overview/">Layout docs</a> or <a
        href="/examples/">our official examples</a> to start laying out your site’s content and components.</p>
 
    <h2>Important globals</h2>
 
    <p>Bootstrap employs a handful of important global styles and settings that you’ll need to be aware of when using
      it, all of which are almost exclusively geared towards the <em>normalization</em> of cross browser styles. Let’s
      dive in.</p>
 
    <h3 id="html5-doctype">HTML5 doctype</h3>
 
    <p>Bootstrap requires the use of the HTML5 doctype. Without it, you’ll see some funky incomplete styling, but
      including it shouldn’t cause any considerable hiccups.</p>
    <p>That’s all you need for overall page requirements. Visit the <a href="/layout/overview/">Layout docs</a> or <a
        href="/examples/">our official examples</a> to start laying out your site’s content and components.</p>
 
    <h2>Important globals</h2>
 
    <p>Bootstrap employs a handful of important global styles and settings that you’ll need to be aware of when using
      it, all of which are almost exclusively geared towards the <em>normalization</em> of cross browser styles. Let’s
      dive in.</p>
 
    <h3 >HTML5 doctype</h3>
 
    <p>Bootstrap requires the use of the HTML5 doctype. Without it, you’ll see some funky incomplete styling, but
      including it shouldn’t cause any considerable hiccups.</p>
 
      <div class="code-wrapper">
        <button class="copy-button" id="copy">Copy</button>
          <pre><code class="language-javascript">
            function greet() {
              console.log("Hello, world!");
            }
            </code></pre>
      </div>
 
      <h3  >Responsive meta tag</h3>
      <p>Bootstrap is developed <em>mobile first</em>, a strategy in which we optimize code for mobile devices first and then scale up components as necessary using CSS media queries. To ensure proper rendering and touch zooming for all devices, <strong>add the responsive viewport meta tag</strong> to your <code class="highlighter-rouge">&lt;head&gt;</code>.</p>
      <div class="code-wrapper">
        <button class="copy-button" id="copy">Copy</button>
          <pre><code class="language-javascript">
            function greet() {
              console.log("Hello, world!");
            }
            </code></pre>
      </div>
      <p>With the above snippet, nested elements—including generated content via <code class="highlighter-rouge">::before</code> and <code class="highlighter-rouge">::after</code>—will all inherit the specified <code class="highlighter-rouge">box-sizing</code> for that <code class="highlighter-rouge">.selector-for-some-widget</code>.</p>
 
      <p>Learn more about <a href="https://css-tricks.com/box-sizing/">box model and sizing at CSS Tricks</a>.</p>
 
      <h3 id="reboot">Reboot</h3>
 
      <p>For improved cross-browser rendering, we use <a href="/content/reboot/">Reboot</a> to correct inconsistencies across browsers and devices while providing slightly more opinionated resets to common HTML elements.</p>
 
      <h2 id="community">Community</h2>
 
      <p>Stay up to date on the development of Bootstrap and reach out to the community with these helpful resources.</p>
 
      <ul  class="HtmlBox_Ul">
        <li>Follow <a href="https://twitter.com/getbootstrap">@getbootstrap on Twitter</a>.</li>
        <li>Read and subscribe to <a href="https://blog.getbootstrap.com/">The Official Bootstrap Blog</a>.</li>
        <li>Chat with fellow Bootstrappers in IRC. On the <code class="highlighter-rouge">irc.freenode.net</code> server, in the <code class="highlighter-rouge">##bootstrap</code> channel.</li>
        <li>Implementation help may be found at Stack Overflow (tagged <a href="https://stackoverflow.com/questions/tagged/bootstrap-4"><code class="highlighter-rouge">bootstrap-4</code></a>).</li>
        <li>Developers should use the keyword <code class="highlighter-rouge">bootstrap</code> on packages which modify or add to the functionality of Bootstrap when distributing through <a href="https://www.npmjs.com/search?q=keywords:bootstrap">npm</a> or similar delivery mechanisms for maximum discoverability.</li>
      </ul>
 
      <p>You can also follow <a href="https://twitter.com/getbootstrap">@getbootstrap on Twitter</a> for the latest gossip and awesome music videos.</p>
  </div>
  <script>
    
  
  </script>
</body>