相关疑难解决方法(0)

如何使用jquery旋转插件旋转图像?

如何使用jQuery-rotate插件旋转图像?

我尝试了以下内容,似乎不起作用:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>View Photo</title>
<script type="text/javascript" src="scripts/jquery.js"></script>
<script type="text/javascript" src="scripts/jquery.rotate.1-1.js"></script>
<script type="text/javascript">
var angle = 0;
setInterval ( function (e) {
    rotate();
}, 100 );
function rotate() {
    angle = angle + 1;
    $('#pic').rotate(angle);
}
</script>
</head>
<body>
<img border="0" src="player.gif" name="pic" id="pic">
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

大多数浏览器都支持其他方法,谢谢!

jquery image rotation jquery-rotate

10
推荐指数
2
解决办法
6万
查看次数

标签 统计

image ×1

jquery ×1

jquery-rotate ×1

rotation ×1