gpt4 book ai didi

CSS : Button is shifing bit downward as compared to label

转载 作者:太空宇宙 更新时间:2023-11-04 11:44:55 25 4
gpt4 key购买 nike

使用 github link

HTML代码

<div class="col-md-12">
<div class="col-md-2">
Processing
</div>
<div class="col-md-4">
<button class="btn btn-primary">Hello</button>
</div>
</div>

enter image description here

.btn { 
position: relative;
padding: 8px 30px;
border: 0;
margin: 10px 1px; cursor: pointer;
border-radius: 2px;
text-transform: uppercase;
text-decoration: none;
color: rgba(255, 255, 255, 0.84);
transition: background-color 0.2s ease, box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1); outline: none !important; }

与标签相比,您可以清楚地注意到按钮在下降。

任何 CSS 修复?暂时可能是??

最佳答案

middle vertical-aligninline-blockdisplay 应该可以解决这个问题。

Booply

<div class="col-md-12">
<div class="col-md-2 vcenter">
Processing
</div>
<div class="col-md-4 vcenter">
<button class="btn btn-primary">Hello</button>
</div>
</div>

.vcenter {
display: inline-block;
vertical-align: middle;
float: none;
}

关于CSS : Button is shifing bit downward as compared to label,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31052402/

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