Bootstrap CSS组件之大屏幕展播
程序员文章站
2023-11-06 10:38:34
在设计网页布局的时候,经常会有大屏内容的显示jumbotron
顾名思义该组件可以增加标题的大小,并为登陆页面内容添加更多的外边距(margin)。
源码中...
在设计网页布局的时候,经常会有大屏内容的显示jumbotron
顾名思义该组件可以增加标题的大小,并为登陆页面内容添加更多的外边距(margin)。
源码中可以看出:
如果jumbotron放在container样式内,则显示圆角;如果不放在里边,则不会显示圆角。
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <!-- bootstrap从3.0版本开始全面支持移动平台,贯彻移动先行宗旨 --> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>bootstrap 101 template</title> <!-- bootstrap --> <link href="bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet"> </head> <body> <!-- 超大屏幕jumbotron: 1.创建一个带有 class .jumbotron. 的容器 <div> 2.除了更大的 <h1>,字体粗细 font-weight 被减为 200--> <div class="jumbotron"> <h1>hello,world!</h1> <p>this is a simple hero unit.</p> <p><button class="btn btn-primary">learn more</button></p> </div> <!-- bootstrap是基于jquery--> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script src="bootstrap-3.3.7-dist/js/bootstrap.min.js"></script> </body> </html>
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持。