1 回答
已采納

xdlumia
TA貢獻15條經驗 獲得超6個贊
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<style>
.yuanzhu{ position: relative; height: 200px; width: 50px; margin-top: 30px; background:red;margin:30px auto; z-index: 999 ?}
.yuanzhu:before{position: absolute; top:-10px; content: ""; display: block; width: 50px; height: 20px; border-radius:50%; background: #000; ?z-index: 99}
.yuanzhu:after{position: absolute; bottom:-10px; content: ""; display: block; width: 50px; height: 20px; border-radius:50%; background: red; z-index: 9 }
</style>
<body>
<div></div>
</body>
</html>
這個是源代碼
- 1 回答
- 0 關注
- 5512 瀏覽
添加回答
舉報
0/150
提交
取消