python(html display)

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<br>
    <div style="background-color: #458B00; ">asd</div>
    <span style="background-color: #458B00; ">asd</span>

    </br>

    <div style="background-color: #458B00; display: inline;">asd</div>
    <span style="background-color: #458B00; display: block;">asd</span>




</body>
</html>
 display: none; -- 让标签消失
display: inline;
display: block;
display: inline-block;
具有inline,默认自己有多少占多少
具有block,可以设置无法设置高度,宽度,padding margin
******
行内标签:无法设置高度,宽度,padding margin
块级标签:设置高度,宽度,padding margin

发表评论