gpt4 book ai didi

html - Bootstrap 标签相交

转载 作者:行者123 更新时间:2023-11-28 06:21:57 25 4
gpt4 key购买 nike

我有多个 <span>具有 Bootstrap 标签样式的元素,我得到了这个:

Image with problem.

如何解决这个问题?

更新:(添加片段)

.label {
background-color: #5cb85c;
display: inline;
padding: .2em .6em .3em;
font-size: 75%;
font-weight: bold;
line-height: 1;
color: #fff;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: .25em;
}
<span class="label">text</span>

最佳答案

试试这个

<style type="text/css">
.label {
background-color: #5cb85c;
display: inline;
padding: .2em .6em .3em;
font-size: 75%;
font-weight: bold;
line-height: 1;
color: #fff;
text-align: center;
white-space: nowrap;
vertical-align: baseline;
border-radius: .25em;
margin: 4px;
float: left;
}
</style>
<div class="col-sm-3">
<span class="label">2016-01-25</span>
<span class="label">2016-01-01</span>
<span class="label">2016-01-5</span>
<span class="label">2016-02-01</span>
<span class="label">2016-01-25</span>
<span class="label">2016-01-25</span>
<span class="label">2016-01-25</span>
<span class="label">2016-01-25</span>
</div>

关于html - Bootstrap 标签相交,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35536145/

25 4 0