What is the default display:
properties of :AFTER and :BEFORE pseudoelements after you specify content
.
Is it display: inline
or display: inline-block
?
Could not find it in default css values list
Example:
div {
border: solid 1px black;
padding: 5px;
}
div:before {
content: "Before: Am I inline-block or inline?";
color:red;
}
div:after {
content: "After: Am I Inline-block or inline?";
color:green;
}
<div>Div 1</div>
<div>Div 2</div>
<div>Div 3</div>
<div>Div 4</div>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…