理解伪元素选择器
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
q::before {
content: "«";
color: blue;
}
q::after {
content: "»";
color: red;
}
input::placeholder {
color: red;
font-size: 1.2em;
font-style: italic;
}
</style>
</head>
<body>
<q>一些引用</q>, 他说, <q>比没有好。</q>.
<input placeholder="我是红色的!">
</body>
</html>