English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Jumbotron (extra large screen) creates a large gray background box where you can set some special content and information.
Tip: The jumbotron can contain some HTML tags or Bootstrap elements.
We can create a jumbotron by adding the .jumbotron class to the <div> element:
<!DOCTYPE html> <html> <head> <title>Bootstrap 示例</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css"> <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script> <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script> <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <div class="jumbotron"> <h1>Basic Tutorial(oldtoolbag.com)</h1> <p>Learn the basics to go further!!!</p> </div> <p>This is some text.</p> <p>This is some text.</p> </div> </body> </html>Test and See ‹/›
If you want to create a full-screen without rounded corners, you can add .jumbotron in .container:-fluid class, add .container or .container-fluid class to achieve:
<!DOCTYPE html> <html> <head> <title>Bootstrap 示例</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/css/bootstrap.min.css"> <script src="https://cdn.staticfile.org/jquery/3.2.1/jquery.min.js"></script> <script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script> <script src="https://cdn.staticfile.org/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script> </head> <body> <div class="jumbotron jumbotron-fluid"> <div class="container"> <h1>Basic Tutorial(oldtoolbag.com)</h1> <p>Learn the basics to go further!!!</p> </div> </div> <div class="container"> <p>Some text.</p> <p>Some text.</p> </div> </body> </html>Test and See ‹/›