行内标签与块级标签的转换

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

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

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

body>
html>

 

转载于:https://www.cnblogs.com/my-love-is-python/p/9264417.html

你可能感兴趣的:(行内标签与块级标签的转换)