如何在IE7和IE8中使css transform-origin属性工作? [英] How to make css transform-origin property work in IE7 and IE8?

查看:304
本文介绍了如何在IE7和IE8中使css transform-origin属性工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下css规则:

transform-origin: 100% 50%;

如何让它在IE7和IE8中运行?我没有运气,谷歌4个小时。任何帮助表示赞赏!

How to make it work in IE7 and IE8? I was google'ing for 4 hours with no luck. Any help appreciated!

推荐答案

我已经解决了这个问题,方法是将图像加倍,并添加 left:-300px (图像的半宽)。我知道这不是最好的方法,但无论如何它的工作方式应该如此。希望有人会发现这个答案有用:)

I have solved this by making image double width as it was before and added left: -300px(half width of image). I know this is not the best way to do it, but anyway it works like it should do. Hope someone will find this answer helpful :)

这篇关于如何在IE7和IE8中使css transform-origin属性工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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