Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY DATA SCIENCE
     ❯   

Bootstrap 4 巨大广告条


Bootstrap 4 巨大广告条

巨大广告条表示一个大型灰色盒子,用于特别关注某些特殊内容或信息。

提示:在巨大广告条内,您可以放置几乎任何有效的 HTML,包括其他 Bootstrap 元素/类。

Bootstrap 教程

Bootstrap 是最流行的 HTML、CSS 和 JS 框架,用于在网络上开发响应式、移动优先的项目。

使用带有 .jumbotron 类的 <div> 元素来创建巨大广告条

示例

<div class="jumbotron">
  <h1>Bootstrap 教程</h1>
  <p>Bootstrap 是最流行的 HTML、CSS...</p>
</div>
亲自尝试 »

全宽巨大广告条

如果您想要一个没有圆角边框的全宽巨大广告条,请添加 .jumbotron-fluid 类,并在其内部添加 .container.container-fluid

示例

<div class="jumbotron jumbotron-fluid">
  <div class="container">
    <h1>Bootstrap 教程</h1>
    <p>Bootstrap 是最流行的 HTML、CSS...</p>
  </div>
</div>
亲自尝试 »

×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
[email protected]

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
[email protected]

W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning. Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy.

Copyright 1999-2024 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.