摘要: 模拟抽奖的实现过程旋转原理:当支持CSS3属性采用transform: rotate(角度deg)设置,当角度为正数时顺时针旋转,当为负数时逆时针旋转。如果是IE8及其以下,采用采用绝对定位设置top和left,模拟角度旋转。run方法,参数angle指角度 function run(angle) { if (isIE) { cosDeg = Math.cos(angle * Math.PI / 180); sinDeg = Math.sin... 阅读全文
posted @ 2012-07-04 01:58 前端咖 阅读(4452) 评论(4) 推荐(3)