gpt4 book ai didi

css - 如何做在线标签

转载 作者:太空宇宙 更新时间:2023-11-04 08:08:03 26 4
gpt4 key购买 nike

我希望日期显示在标签前面而不是下面。如果有帮助,我正在使用 bootstrap。

enter image description here

            <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet" />
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
<link rel="stylesheet" href="css/styles.css" />

<div class="container"
<div class="row">
<label>End System Date:</label>
<h4>1 Jul 2017</h4>
</div>
</div>

最佳答案

在您的代码中设置h4display 属性。

.inline-block {
display: inline-block;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<link href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css" rel="stylesheet" />
<script src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
<link rel="stylesheet" href="css/styles.css" />

<div class="container">
<div class="row">
<label>End System Date:</label>
<h4 class="inline-block">1 Jul 2017</h4>
</div>
</div>

关于css - 如何做在线标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46491829/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com