gpt4 book ai didi

html - 显示内联自动边距

转载 作者:太空宇宙 更新时间:2023-11-03 22:31:09 27 4
gpt4 key购买 nike

如果有更多经验的人能说出这个利润来自哪里。谢谢!!

enter image description here

这是CSS:

.logo-icon {
background-image: url('../../images/logo.png');
background-repeat: no-repeat;
height: 48px;
width: 49px;
display: inline-block;
}
.logo {
padding: 7px;
margin-right: 0px;
width: 200px;
}
.header {
height: 60px;
width: 100%;
background-color: #FFFF;
position: fixed;
}

.header a {
font-family: 'Roboto';
font-size: 20px;
color: #2D9CDB;
vertical-align: -webkit-baseline-middle;
}

最佳答案

来自CSS 2.2 spec for calculating widths :

10.3.3 Block-level, non-replaced elements in normal flow

'margin-left' + 'border-left-width' + 'padding-left' + 'width' + 'padding-right' + 'border-right-width' + 'margin-right' = width of containing block

If all of the above have a computed value other than 'auto', the values are said to be "over-constrained" ..., the specified value of 'margin-right' is ignored and the value is calculated so as to make the equality true. ...

关于html - 显示内联自动边距,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48489317/

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