springboot怎么把数据传给前端:springboot 如何引入前端 bootstrap?
这种问题网上一搜一大堆,你可以具体找一篇文章试试,遇到问题可以针对相关问题去提问。springboot通过jar包方式引入bootstrap_个人文章 - SegmentFault 思否 这不是查查就
顺晟科技
2021-07-11 10:56:33
8
我正在创建一个包含四个按钮的引导网格。按钮应该居中,我希望它们每个都有相同的宽度(理想情况下是全列)。但是,按钮似乎只使用其内容的宽度,如下图所示:
我尝试用width: ;
设置display: block
,但似乎没有帮助。我的col
似乎根本没有宽度?你知道我做错了什么吗?
.container {
width: ;
}
.row {
background: #f8f9fa;
margin-top: 20px;
display: flex;
justify-content: space-evenly;
}
.col {
border: solid 1px #6c757d;
background: #f5a142;
padding: 10px;
}
.btn {
width: ;
display: block;
}
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.css" rel="stylesheet"/>
<div class="container">
<div class="row">
<div class="col-med-6">
<button class="btn btn-primary">Button</button>
</div>
<div class="col-med-6">
<button class="btn btn-primary">Button</button>
</div>
</div>
<div class="row">
<div class="col-med-6">
<button class="btn btn-primary">Longer Button</button>
</div>
<div class="col-med-6">
<button class="btn btn-primary">Button</button>
</div>
</div>
</div>
(如果有用的话,这里还有一个jsfiddle链接。)
顺晟科技:
05
2022-12
02
2022-12
02
2022-12
29
2022-11
29
2022-11
24
2022-11