Bootstrap 超大屏幕 Jumbotron class的用法教程

2024-10-12 07:21:51

写一个通屏的的大屏幕的效果,用class .Jumbotron 就可以,这里介绍下Bootstrap 超大屏幕 Jumbotron class的用法教程。

工具/原料

bootstrap手册

sublime text3 编辑器

电脑(可上网)

Jumbotron 不带圆角超大屏幕

1、明确自己要的效果,如图。

Bootstrap 超大屏幕 Jumbotron class的用法教程

3、使用Jumbotron class写HTML代码。<div class="jum水瑞侮瑜botron"> <div class="container"> <hgroup> <h1>关于</h1> <h4>关于jumbotron的使用教程...</h4> </hgroup> </div></div>注意:获得不带圆角的超大屏幕只需要把类名jumbotron写到类名container外面。

Bootstrap 超大屏幕 Jumbotron class的用法教程

5、浏览器查看效果。

Bootstrap 超大屏幕 Jumbotron class的用法教程Bootstrap 超大屏幕 Jumbotron class的用法教程

2、CSS样式同上。测试浏览器效果如图,四角都是圆角,默认有一个border-radius属性。

Bootstrap 超大屏幕 Jumbotron class的用法教程
猜你喜欢