CSS base (XVI) - Display the style of a label is disappearing display: None


Essays and records to facilitate their access to fellow travelers, it is best to learn HTML learning CSS.

#------------------------------------------------I ------------------------------------------- dividing line is a shame

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>input系列</title>
</head>
<body>
    <span style="background-color:red; display:None; width:50px;height:50px;">span</span>
</body>
</html>

effect:

The only one line of code, use display: None so that the label disappears, the page appears to be empty

Guess you like

Origin www.cnblogs.com/lirongyang/p/11303537.html