浏览器解析行内块或行内标签的时候,如果标签换行书写则会产生一个空格的距离

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 浏览器解析行内块或行内标签的时候,如果标签换行书写则会产生一个空格的距离 */
        
        div {
            display: inline-block;
            width: 100px;
            height: 100px;
        }
        
        .one {
            background: pink;
        }
        
        .two {
            background: skyblue;
        }
    </style>
</head>

<body>
    <div class="one"></div>
    <div class="two"></div>
</body>

</html>
posted @ 2022-10-15 12:20  Felix_Openmind  阅读(58)  评论(0)    收藏  举报
*{cursor: url(https://files-cdn.cnblogs.com/files/morango/fish-cursor.ico),auto;}