赞
踩
- <!DOCTYPE html>
- <html>
- <head>
- <title></title>
- <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
- <style type="text/css">
- /*无限旋转动画*/
- @keyframes changDeg{
- 0%{
- transform: rotate(0deg);
- }
- 100%{
- transform: rotate(360deg);
- }
- }
- #app{
- width:500px;
- height: 500px;
- margin:50px auto;
- /*transform: rotate(0deg);*/
- background-color:red;
- animation:changDeg 2s linear 0.2s infinite;
- }
-
- </style>
- </head>
- <body>
- <!-- <div></div> -->
- <div id="app"></div>
- <script type="text/javascript">
- var app = new Vue({
- el:'#app'
- });
- </script>
- </body>
- </html>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。