使用css旋转图像 [英] Rotating an image using css

查看:105
本文介绍了使用css旋转图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过相隔90度的四个方向在网页上旋转图像。我更喜欢这种情况发生在客户端机器上。这可以用css完成吗?或者我需要使用javascript吗?

I'd like to rotate an image on a webpage through four orientations at 90 degrees apart. I'd prefer this to happen on the client machines. Can this be done using css? Or will I need to use javascript?

感谢您的时间。

推荐答案

您可以使用这些CSS转换在Firefox中执行此操作 - 与其他浏览器一样,我想你需要Javascript。我建议你或许去看看 Raphael图书馆

You can do it in Firefox using these CSS transforms - as for other browsers, I think you'll need Javascript. I'd recommend you perhaps take a look at the Raphael library.

这篇关于使用css旋转图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆