多个网格
Bootstrap Multiple grid
本文关键字:网格 更新时间:2023-09-26
我在bootstrap网格上工作。我想让设计像pic1.jpg。但我没有得到我期望的设计。Pic2.jpg是当前的场景。我在下面给出了我的代码。
pic1.jpg: -! http://s16.postimg.org/xjrulxcmd/pic1.png
pic2.jpg: -! http://s30.postimg.org/tu3h09ubl/pic2.png
所以,Category3一定是category2、category4和category5的和。此外,我试图画一个圆圈在左侧的类别1,但它不工作。圆圈在第一类之后。它也应该响应,这是必须的。
My code:-
<!-- Boostrap Help -->
<html lang="en">
<head>
<title>Example </title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap-theme.min.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
<style type="text/css">
p {
padding: 50px;
font-size: 32px;
font-weight: bold;
text-align: center;
background: #f2f2f2;
}
#circle {
background: #f00;
width: 50px;
height: 50px;
border-radius: 50%;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12">
<p>Category 1</p>
<div id="circle"></div>
</div>
<div class="col-md-8">
<p>Category 2</p>
</div>
<div class="col-md-4">
<p>Category 3</p>
</div>
<div class="col-md-8">
<p>Category 4</p>
</div>
<div class="col-md-8">
<p>Category 5</p>
</div>
</div>
</div>
</body>
</html>
这就是我对你上面的提供所做的
CSS p{
padding: 50px;
font-size: 32px;
font-weight: bold;
text-align: center;
background: #f2f2f2;
height:100%;
}
#circle {
background: #f00;
width: 50px;
height: 50px;
border-radius: 50%;
position:absolute;
left:10%;
top:30%;
}
.abc {
position:relative;
}
.row-eq-height { /*-- This class is the trick make two column equal height --*/
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
相关文章:
- 剑道网格jQuery动画()问题
- 使用Dnamics CRM 2011中的JavaScript读取子网格的所有记录,而不考虑活动页面
- 我可以更改剑道UI网格吗's的外键值
- jqGrid树网格问题
- 在Three.js中导出网格会提高性能吗
- 如何在剑道网格初始化后设置pageSizes
- 在threejs中使用纹理网格和线框网格
- 如何在可分组的剑道网格中设置空数据文本
- 如何在Angular UI网格中选择下一行
- ExtJS网格单元格编辑器,防止焦点松动问题
- 多维数据集网格未在指定的分区中绘制
- 光线投射从内部投射时不会碰到网格
- 使用javascript在MVC中查找网格长度时出错
- 如何刷新AngularJs剑道网格
- 使用导航属性创建Kendo UI网格模型的问题
- ui网格将单元格显示为选择标记
- ui网格日期单元格过滤器,过滤日期格式导致显示错误的日期
- 使用按钮的Angular UI网格过滤器
- 如何在master中调用细节网格作为单击事件
- ui网格:在自定义表头模板中触发排序