Characteristics of li: a section of height has been added at the top.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>li</title>
    <style>
        *{
            margin:0;
            padding:0;
        }
        -sharpmain {
            width: 392px;
            height: 203px;
        }
        img {
            width: 392px;
            height: 203px;
        }
    </style>
    
</head>
<body>
<div id="main">
    <ul id="box">
        <li><img src="image/download.png" /></li>
    </ul>
</div>
</body>
</html>

Why is it that when looking at the element, li 392 208, this li adds a height of 5px below, what is it if it is not margin padding,?

Mar.14,2021

     imgdisplay: inline; 
displaypblock
font-size:0

my understanding of CSS vertical-align Zhang Xinxu


img's pot
add to img: display: block;

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e46268-4366b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e46268-4366b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?