[英]Same code but behaving differently in different view
I have created a fiddle , and it works fine in all browsers I have tested. 我创建了一个小提琴 ,它在我测试过的所有浏览器中都可以正常工作。 1 1个
However, when I try the same fiddle in the whole page view ( /show
), the fiddle suddenly starts doing weird things such as some animations are not animating asexpected, and this only happens on Chrome (tested on Chrome 33). 但是,当我在整个页面视图 ( /show
)中尝试相同的小提琴时 ,小提琴突然开始做一些奇怪的事情,例如某些动画没有按预期进行动画处理,而这仅在Chrome(在Chrome 33上进行了测试)上发生。
I'm pretty sure the code is the same. 我很确定代码是相同的。
To make sure they are using the same code, I visited the exact same URL of the preview window . 为了确保他们使用的是相同的代码,我访问了与预览窗口完全相同的URL 。 The result is the same, however. 结果是一样的。
This has been bugging me, I don't see any reason behind this causing this behavior to happen. 这一直困扰着我,我看不到任何导致此行为发生的原因。
1 Except Internet Explorer. 1 Internet Explorer除外。
Try the following: 1>prefix -webkit, -moz and -o for transformStyle: "preserve-3d" and perspective: '150px' ie -webkit-transform-style:preserve-3d and -webkit-perspective:150px repectively. 尝试以下操作:1> prefix -webkit,-moz和-o表示transformStyle:“ preserve-3d”和透视图:“ 150px”,即-webkit-transform-style:preserve-3d和-webkit-perspective:150px。 I observer you have not done that 我观察到您还没有这样做
2>Right click on chrome icon->properties->compatibility->disable visual theme, toggle the value of disable visual theme and check if your animation works as expected. 2>右键单击chrome图标->属性->兼容性->禁用视觉主题,切换禁用视觉主题的值,然后检查动画是否按预期工作。 After changing value of disable visual theme you need to restart chrome 更改禁用视觉主题的值后,您需要重新启动Chrome
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.