jQuery Div 旋转?

发布于 2025-01-05 04:06:59 字数 94 浏览 0 评论 0原文

是否可以旋转 div(静态)?我在 Google 上搜索并找到“jqueryrotate”,但这在 IE 8 和 IE 7 中不起作用。

有人知道解决方案吗?

Is it possible to rotate a div (static)? I have search on Google and found "jqueryrotate" but this will not working in IE 8 and IE 7.

Does somebody know a solution?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

想你只要分分秒秒 2025-01-12 04:07:00

您可以安全地对所有符合标准的浏览器使用 css3 旋转,并使用 IE 过滤器

  -webkit-transform: rotate(7.5deg);  /* Saf3.1+, Chrome */
     -moz-transform: rotate(7.5deg);  /* FF3.5+ */
      -ms-transform: rotate(7.5deg);  /* IE9 */
       -o-transform: rotate(7.5deg);  /* Opera 10.5 */ 
          transform: rotate(7.5deg);
             filter: progid:DXImageTransform.Microsoft.Matrix(/* IE6–IE9 */ 
                     M11=0.9914448613738104, M12=-0.13052619222005157,M21=0.13052619222005157, M22=0.9914448613738104, sizingMethod='auto expand');
               zoom: 1;

一个方便的网站可以帮助您解决此问题:css3please

You can safely use css3 rotates for all standard-conform browsers and use filters for IE.

  -webkit-transform: rotate(7.5deg);  /* Saf3.1+, Chrome */
     -moz-transform: rotate(7.5deg);  /* FF3.5+ */
      -ms-transform: rotate(7.5deg);  /* IE9 */
       -o-transform: rotate(7.5deg);  /* Opera 10.5 */ 
          transform: rotate(7.5deg);
             filter: progid:DXImageTransform.Microsoft.Matrix(/* IE6–IE9 */ 
                     M11=0.9914448613738104, M12=-0.13052619222005157,M21=0.13052619222005157, M22=0.9914448613738104, sizingMethod='auto expand');
               zoom: 1;

a handy website to help you with this: css3please

可是我不能没有你 2025-01-12 04:07:00

在 jqueryrotate.js 文件中替换:

第 ~132 行
this._img.parentNode.removeChild(this._img);//替换这个...
jQuery(this._img).parent().find(this._img).remove();// 与此

In you jqueryrotate.js file replace this:

line ~132
this._img.parentNode.removeChild(this._img);//replace this...
jQuery(this._img).parent().find(this._img).remove();// with this

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文