1 利用绝对定位和旋转将两个正方形重叠
2 将黑色的方块变成白色的就行了
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
b{
position: absolute;
left: 4px;
top: 2px;
width: 6px;
height: 6px;
background-color:red;
transform: rotate(45deg);
}
i{
position: absolute;
left: 4px;
top: 0.5px;
width: 6px;
height: 6px;
background-color:#000;
transform: rotate(45deg);
}
</style>
</head>
<body>
<b></b>
<i></i>
</body>
</html>