<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="renderer" content="webkit">
<title>Document</title>
<style>
html,
body {
margin: 0;
padding: 0;
}
.item {
display: inline-block;
}
.bk1 {
display: inline-block;
}
.box {
border: 1px solid -sharp000;
}
</style>
</head>
<body>
<div class="box">
<span class="bk1"></span><div><span class="item">1</span><span class="item">2</span><span class="item">3</span><span class="item">4</span></div>
</div>
</body>
</html>
the screenshot rendered according to the above page structure and style is as follows
, .bk1 block inline
I don"t know why a blank space is left at the top of the dispaly: inline-block
the size of this element is also 0 * 0 through the console, and there is no margin.
I don"t know how to explain this