温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

使用纯CSS实现圣诞节雪花图案

发布时间:2020-07-22 04:20:57 来源:网络 阅读:1064 作者:cssaaa 栏目:web开发

漂亮的雪花图案:

使用纯CSS实现圣诞节雪花图案

<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>CSSAAA TEST DEMO</title>
<style type="text/css">
#snow {
 margin:160px;position:relative;
 width:200px;height:20px;
 border-radius:25px;
 background-color:#09f;
}
.flake {
 position:absolute;left:0;right:0;top:0;bottom:0;margin:auto;
 width:35px;height:10px;border-radius:10px;
}
#snow:before, #snow:after, .flake:before, .flake:after {
 content:" ";position:absolute;
 width:inherit;height:inherit;
 border-radius:inherit;
 background-color:inherit;
}
#snow:before, .flake:before {
 transform:rotate(-60deg);
}
#snow:after, .flake:after {
 transform:rotate(60deg);
}
.flake, .flake:before, .flake:after {
 box-shadow:45px 50px 0 2px #09f,-45px -50px 0 2px #09f,
   45px -50px 0 2px #09f,-45px 50px 0 2px #09f;
}
</style>
<script src="https://cdn.bootcss.com/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body>
<div id="snow">
 <div class="flake"></div>
</div>
</body>
</html>

代码来自:http://www.cssaaa.com/css3/158.html

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI