Hello!小伙伴!
首先很是感谢您阅读海轰的文章,假若文中有错误的地方,欢迎您指出~
哈哈 自我介绍一下
昵称:海轰
标签:程序猿一只|C++选手|学生
简介:因C语言结识编程,随后转入计算机专业,有幸拿过国奖、省奖等,已保研。目前正在学习C++/Linux(真的真的太难了~)
学习经验:扎实基础 + 多作笔记 + 多敲代码 + 多思考 + 学好英语!
平常分享:微信公众号【海轰Pro】记录生活、学习点滴,分享一些源代码或者学习资料,欢迎关注~css
HTMLhtml
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="style.css"> <title>Document</title> </head> <body> <section> <span class="loader-1"></span> </section> </body> </html>
CSS编程
html,body{ margin: 0; height: 100%; } body{ display: flex; justify-content: center; align-items: center; background: #263238; } section { width: 650px; height: 300px; padding: 10px; position: relative; display: flex; align-items: center; justify-content: center; border: 2px solid red; } .loader-1 { width : 96px; height: 96px; background: orange; border: 10px solid #FFF; border-bottom-color: #FF3D00; border-radius: 50%; display: inline-block; animation: rotation 1s linear infinite; } @keyframes rotation { 0% { transform: rotate(0deg) } 100% { transform: rotate(360deg) } }
css代码微信
width : 96px; height: 96px; background: orange;
效果图以下
学习
css代码flex
border: 10px solid #FFF;
效果图以下
注动画
css代码ui
border-bottom-color: #FF3D00;//设置下边框颜色
效果图以下
spa
css代码code
animation: rotation 1s linear infinite;
// 动画实现 @keyframes rotation { 0% { transform: rotate(0deg) } 100% { transform: rotate(360deg) } }
效果图以下
学习来源:
css只会一点点,学习之余从喜欢看一些大神级别的css效果展现,根据源码一点一点学习知识点,文中有不对的地方,欢迎指出~