surprise
2024-04-08 be8b9ba19cee023829d2adc5d390e5bf0f56cbb8
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
<!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>
 
</head>
<body>
 
      <div class="col-lg-9" id="maincontent">
                  <h1 class="bd-title" id="content">Introduction</h1>
                  <p class="bd-lead">Get started with Bootstrap, the world’s most popular framework for building responsive, mobile-first sites, with jsDelivr and a template starter page.</p>
                  <script async src="https://cdn.carbonads.com/carbon.js?serve=CKYIKKJL&placement=getbootstrapcom" id="_carbonads_js"></script>
 
                  <h2 id="quick-start">Quick start</h2>
 
                  <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 id="css">CSS</h3>
 
                  <p>Copy-paste the stylesheet <code class="highlighter-rouge">&lt;link&gt;</code> into your <code class="highlighter-rouge">&lt;head&gt;</code> before all other stylesheets to load our CSS.</p>
 
                  <div class="code-wrapper">
                    <button class="copy-button">Copy</button>
                      <pre><code class="language-javascript">
                        function greet() {
                          console.log("Hello, world!");
                        }
                        </code></pre>
                  </div>
 
                  <h3 id="js">JS</h3>
 
                  <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">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="../background/1111.png" class="img-fluid rounded mx-auto d-block" alt="Responsive image" style="text-align: center !important;">
                  <details>
                  <summary class="text-primary mb-3">Show components requiring JavaScript</summary>
 
                  <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>
 
                  <h2 id="starter-template">Starter template</h2>
 
                  <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">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 id="important-globals">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>
 
                  <div class="code-wrapper">
                    <button class="copy-button">Copy</button>
                      <pre><code class="language-javascript">
                        function greet() {
                          console.log("Hello, world!");
                        }
                        </code></pre>
                  </div>
 
                  <h3 id="responsive-meta-tag">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">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>
                    <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>
 
 
   
   
</body>