<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script src="Scripts/jquery-3.1.1.min.js"></script>
<style type="text/css">
.circleHome {
}
.circle {
position:absolute;
top:10px;
left:10px;
display: none;
border-radius: 50%;
height: 300px;
width: 300px;
margin: 0;
border:10px solid #ff0;
}
.circle2 {
position: relative;
top: 10px;
left: 10px;
display: block;
border-radius: 50%;
height: 300px;
width: 300px;
margin: 0;
border-top: 10px solid #f00;
border-right: 10px solid #ff0;
border-bottom: 10px solid #ff0;
border-left: 10px solid #ff0;
}
</style>
<script type="text/javascript">
$(function () {
var $elie = $(".circle2");// $(selectorForElementsToRotate);
rotate(0);
function rotate(degree) {
// For webkit browsers: e.g. Chrome
$elie.css({ WebkitTransform: 'rotate(' + degree + 'deg)' });
// For Mozilla browser: e.g. Firefox
$elie.css({ '-moz-transform': 'rotate(' + degree + 'deg)' });
// For Mozilla browser: e.g. IE
$elie.css({ 'transform': 'rotate(' + degree + 'deg)' });
// Animate rotation with a recursive call
setTimeout(function () { rotate(++degree); }, 1);
}
});
</script>
</head>
<body>
<form id="form1" runat="server">
<div>111</div>
<div class="circleHome">
<div class="circle"></div>
<div class="circle2"></div>
</div>
<div>222</div>
</form>
</body>
</html>
相关文章
- 03-06X特效 html+css+js
- 03-06最新某某《 HTML5与CSS3实现动态网页》
- 03-06解惑:如何使用html+css+js实现旋转相册,立方体相册等动画效果
- 03-06HTML & CSS: Creating Forms HTML与CSS教程: 创建表单 Lynda课程中文字幕
- 03-06的TinyMCE从我的HTML代码中删除CSS
- 03-06Html问题之CSS显示问题
- 03-06html---css小练习(1)
- 03-06【WEB基础】HTML & CSS 基础入门表格
- 03-06011 HTML+CSS(Class121-)
- 03-06IT兄弟连 HTML5教程 CSS3属性特效 2D变换1