gpt4 book ai didi

css - 为什么显示:inline-block not working same?

转载 作者:行者123 更新时间:2023-11-28 10:13:51 25 4
gpt4 key购买 nike

<分区>

<html>
<head>
<style>
.nav
{
height: 45px;
}
.btn-return
{
display: inline-block;
width: 43px;
height: 100%;
border: 1px solid red;
}
.btn-menu
{
display: inline-block;
width: 43px;
height: 100%;
border: 1px solid red;
}
</style>
</head>
<body>
<div class="nav">
<a href="#" class="btn-return">return</a>
<a href="#" class="btn-menu"></a>
</div>
</body>
</html>

enter image description here

<html>
<head>
<style>
.nav
{
height: 45px;
}
.btn-return
{
display: inline-block;
width: 43px;
height: 100%;
border: 1px solid red;
}
.btn-menu
{
display: inline-block;
width: 43px;
height: 100%;
border: 1px solid red;
}
</style>
</head>
<body>
<div class="nav">
<a href="#" class="btn-return">return</a>
<a href="#" class="btn-menu">problem</a>
</div>
</body>
</html>

enter image description here

除了<a href="#" class="btn-menu"></a>之间有一些字符外,html代码都是一样的.我想知道为什么有一些字符时结果不一样
<a href="#" class="btn-menu"></a>之间.太陌生了!,我想了很久,但我找不到原因。

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