也不太会讲解,直接贴代码吧。内容很简单,应该都可以看懂
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="">
<meta name="author" content="域叶">
<title>超简单转盘抽奖效果</title>
<style>
#bg {
width: 650px;
height: 600px;
margin: 0 auto;
background: url(img/content_bg.jpg) no-repeat;
position: relative;
}
img.zhuanpan {
position: absolute;
z-index: 10;
top: 155px;
left: 247px;
}
img.content {
position: absolute;
z-index: 5;
top: 60px;
left: 116px;
transition: all 4s;
}
</style>
</head>
<body>
<div id="bg">
<img id="btn" clas