当前位置:网站首页>bootsrap中的栅格系统
bootsrap中的栅格系统
2022-07-01 03:19:00 【黄钢】
bootsrap中的栅格系统
Bootstrap 提供了一套响应式、移动设备优先的流式栅格系统,随着屏幕或视口(viewport)尺寸的增加,系统会自动分为最多12列。
上面是bootsrap官网上的说明。官网解释了栅格的多种布局方式,但是不够明确
现在我要做这么个布局
很简单的布局,感觉官网上也没讲明白怎么实现,看了一下菜鸟教程,算是搞明白了
bootsrap的栅格系统总共有12格,这个格是横向上的,和纵向无关
实现的思路:
- 上面这个布局A和B占左边3格(或者叫列),中间的E占6格,C和D占右边的3格
- A和B放在同一个class为row的div里,同时,横向上要撑满这个row,也就是说A和B各占这个子布局的12格
- C和D同AB
- 自己根据页面内容,调整各个子布局的高度
代码如下:
<div class="col-lg-3">
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">A</div>
<div class="panel-body">
<div id="m2" style="width: 100%;height:300px;"></div>
</div>
</div>
</div>
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">B</div>
<div class="panel-body">
<div id="m1" style="width: 100%;height:300px;"></div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="panel panel-default">
<div class="panel-heading">E</div>
<div class="panel-body">
<div id="m3" style="width: 100%;height:692px;overflow: hidden;margin:0"></div>
</div>
</div>
</div>
<div class="col-lg-3">
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">SOC(%)C</div>
<div class="panel-body">
<div id="m4" style="width: 100%;height:300px;"></div>
</div>
</div>
</div>
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">D</div>
<div class="panel-body">
<div id="m5" style="width: 100%;height:300px;"></div>
</div>
</div>
</div>
</div>
</div>
理解了这个布局后,其他的栅格布局应该都能做出来
边栏推荐
- C language EXECL function
- [小样本分割]论文解读Prior Guided Feature Enrichment Network for Few-Shot Segmentation
- 【读书笔记】《文案变现》——写出有效文案的四个黄金步骤
- Database DDL (data definition language) knowledge points
- Overview of EtherCAT principle
- 数组的includes( )
- How to achieve 0 error (s) and 0 warning (s) in keil5
- Force buckle - sum of two numbers
- 衡量两个向量相似度的方法:余弦相似度、pytorch 求余弦相似度:torch.nn.CosineSimilarity(dim=1, eps=1e-08)
- [daily training] 1175 Prime permutation
猜你喜欢
RSN:Learning to Exploit Long-term Relational Dependencies in Knowledge Graphs
Hal library operation STM32 serial port
LeetCode 31下一个排列、LeetCode 64最小路径和、LeetCode 62不同路径、LeetCode 78子集、LeetCode 33搜索旋转排序数组(修改二分法)
在线公网安备案保姆级教程【伸手党福利】
衡量两个向量相似度的方法:余弦相似度、pytorch 求余弦相似度:torch.nn.CosineSimilarity(dim=1, eps=1e-08)
深度学习中的随机种子torch.manual_seed(number)、torch.cuda.manual_seed(number)
文件上传下载
C语言多线程编程入门学习笔记
E15 solution for cx5120 controlling Huichuan is620n servo error
[小样本分割]论文解读Prior Guided Feature Enrichment Network for Few-Shot Segmentation
随机推荐
LeetCode 128最长连续序列(哈希set)
Hal library setting STM32 interrupt
How to use hybrid format to output ISO files? isohybrid:command not found
E15 solution for cx5120 controlling Huichuan is620n servo error
How to achieve 0 error (s) and 0 warning (s) in keil5
Ctfshow blasting WP
服务器渲染技术jsp
5. [WebGIS practice] software operation - service release and permission management
TEC: Knowledge Graph Embedding with Triple Context
JUC learning
还在浪费脑细胞自学吗,这份面试笔记绝对是C站天花板
用小程序的技术优势发展产业互联网
FCN全卷積網絡理解及代碼實現(來自pytorch官方實現)
torch.histc
torch. histc
Avalanche problem and the use of sentinel
【伸手党福利】JSONObject转String保留空字段
shell脚本使用两个横杠接收外部参数
Design of serial port receiving data scheme
The value of the second servo encoder is linked to the NC virtual axis of Beifu PLC for display