简体   繁体   English

相同的代码,但在不同的视图中表现不同

[英]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.

相关问题 相同代码的来源不同 - Identical code behaving differently from different sources 相同的代码在不同的设备上运行不同 - Same code runs differently on different devices 两个相同的 javascript 代码以不同的方式表现(在不同的浏览器中) - Two same javascript code behaving in different way(In different browser) 网站在一个域上的IE9上的行为不同,但在不同域上的完全相同的站点表现良好 - Website behaving differently on IE9 on one domain, but exact same site on different domain behaves fine Keydown 和 Mouseclick 调用相同的 function 但行为不同 - Keydown and Mouseclick calling same function but behaving differently 为什么每次运行时相同的语音识别代码的行为都不同? - Why is the same Speech Recognition code behaving differently every time i run? position:固定(css)在不同浏览器中的行为不同 - position:fixed(css) behaving differently in different browser 角路由在不同的浏览器中表现得奇怪/不同 - Angular routing behaving strange/differently with different browsers Gatsby/GraphQL 在与 GraphiQL 的代码中表现不同 - Gatsby/GraphQL behaving differently in code from GraphiQL 生产和本地代码的行为不同 - Code behaving differently in Production vs Locally
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM