0

我正在使用 jQuery Rotate 来旋转图像,但我无法弄清楚它不起作用的原因。我在代码中包含了所有内容,但没有运气。我正在FF上测试它。

<html>
    <head>
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
        <script type="text/javascript" src="http://jqueryrotate.googlecode.com/svn/trunk/jQueryRotate.js"></script>
        <script type="text/javascript">
            $(document).ready(function() {
                $("#image").rotate(180);
            });
        </script>
        <title></title>
    </head>
    <body>
        <img src="https://www.google.com/images/srpr/logo3w.png" id="image" style="margin: 100px 100px">
    </body>
</html>

即使我从这个线程粘贴代码也无法让 jqueryrotate 正常工作,但没有运气。

4

1 回答 1

0

我是 jqueryrotate 的作者,不得不说......好吧......我在处理许多浏览器的边距时遇到了一些问题,我建议您将 IMG 放入 DIV 并将此边距添加到 DIV 容器中。不幸的是,它是 CANVAS/VML 解决方案大量变通办法的结果,这使得很难考虑所有可能的情况(例如保证金)。

于 2013-08-02T06:21:09.257 回答