/* 創建3D立方體的形狀 */
.立方體 {
width: 200px;
height: 200px;
depth: 1;
background-color: blue;
}
/* 設置3D立方體的樣式 */
.立方體 {
position: relative;
width: 100%;
height: 100%;
depth: 1;
margin: 0 auto;
}
.立方體:before,
.立方體:after {
content: "";
position: absolute;
width: 50px;
height: 50px;
depth: 0;
background-color: red;
border-radius: 50%;
transform: rotate(-45deg);
}
.立方體:after {
left: 50px;
transform: rotate(45deg);
}