题解 | #CSS选择器——伪元素#
CSS选择器——伪元素
http://www.nowcoder.com/practice/b647425a1b464aff825a45d2b1825638
<html>
<head>
<meta charset=utf-8>
<style type="text/css">
/*补全代码*/
div::after {
content: '';
display: block;
width: 20px;
height: 20px;
background-color: rgb(255,0,0);
}
</style>
</head>
<body>
<div></div>
</body>
</html>