display : inline-block  块级标签转换为行内标签

display : block  行内标签转换为块级标签 

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div style="display: inline-block">sad</div>
    <span style="display: block">123</span>

</body>
</html>

 

posted on 2018-07-04 17:34  python我的最爱  阅读(282)  评论(0编辑  收藏  举报