CSS 画一个八卦 fix

编程入门 行业动态 更新时间:2024-10-23 23:32:23

CSS <a href=https://www.elefans.com/category/jswz/34/1755173.html style=画一个八卦 fix"/>

CSS 画一个八卦 fix

用作随机转盘也是不错的。

<style>
body{height: 100%;margin: 0 auto;}.bg_box{width: 100px;height: 200px;margin: 200px auto;background-color: white;border-color: black;border-style: solid;border-width: 2px 2px 2px 100px;border-radius: 100%;position: relative;animation: xuanzhuan 4s linear infinite;}.top-circle{position:absolute;left:-50px;top:0;height:100px;width:100px;text-align:center;line-height:100px;border-radius:100%;background:#000;}.bottom-circle{position:absolute;left:-50%;bottom:0;height:100px;width:100px;text-align:center;line-height:100px;border-radius:100%;background:#fff;}.small-circle{    position: absolute;display: inline-block;height: 25px;width: 25px;border-radius: 100%;margin: auto;top: 0;bottom: 0;}.white{background:#fff;}.black{background:#000;}@keyframes xuanzhuan{0%{transform: rotate(0deg);}100%{transform: rotate(360deg);}
</style><div class="bg_box"><div class="top-circle"><span class="small-circle white"></span></div><div class="bottom-circle"><span class="small-circle black"></span></div>
</div>   

更多推荐

CSS 画一个八卦 fix

本文发布于:2024-03-10 05:44:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1727139.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:画一   CSS   fix   个八卦

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!