您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

如何使用css来画一个棒棒糖

2026/1/22 19:46:53发布15次查看
先来看一下效果图:
(相关视频教程推荐:css视频教程)
css代码:
<!doctype html><html><head><meta charset="utf-8"><title>棒棒糖</title> <h3>用css画一个棒棒糖</h3> <p>要求:</p> <p>1:棒棒糖中间文字为水平居中</p> <p>2:不得少于三层颜色</p><style> .round{ width: 100px; height: 100px; background-color: #e5e7e9; position: relative; text-align: center; margin: 100px; font: italic bold 17px/100px arial,sans-serif; box-shadow: 0 0 0 10px #4286b4, 0 0 0 20px #fc052e, 0 0 0 30px #fbdd00, 0 0 0 40px #00bdfb; border-radius: 200px; color: #ffffff; } .bangbang{ width: 20px; height: 150px; margin: -80px 0px 0px 142px; background-color: #00bdfb; border-radius: 10px; }</style></head><body> <div> hello world! </div> <div></div></body></html>
推荐教程:css快速入门
以上就是如何使用css来画一个棒棒糖的详细内容。
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product