两个div在同一行显示

时间:2020-04-16 20:58:14   收藏:0   阅读:138

栅格系统需要引用bootstrap插件

<script src="~/Scripts/BootStrap/bootstrap.js">

</script> <link href="~/Content/BootStrap/bootstrap.css" rel="stylesheet" />

栅格系统使页面内容随页面大小改变,将页面一行分为最多十二块

col-lg- 大屏
col-md- 中屏
col-sm- 小屏
后面数字是多少,就是占了多少份

部分代码:

技术图片

 

运行结果:

技术图片

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!