简体   繁体   English

元素在 Chrome 77 上短暂消失并重新出现

[英]Elements briefly disappear and reappear on Chrome 77

I have a tabbed UL that briefly disappears on Chrome 77 when li > a is clicked.我有一个标签式 UL,当单击 li > a 时,它会在 Chrome 77 上短暂消失。 When it reappears it appears behind the element below it (almost like it literally disappeared from the DOM and then the element below it moved in it's place or something)当它重新出现时,它出现在它下面的元素后面(几乎就像它从 DOM 中消失了,然后它下面的元素移动到它的位置或其他东西)

Here are some notes :以下是一些注意事项

  • If you reload the page the problem doesn't generally occur如果您重新加载页面,问题通常不会发生
  • It only happens if you navigate to the page from somewhere else只有当您从其他地方导航到页面时才会发生这种情况
  • If you inspect any element and uncheck any css property on the page the problem immediately corrects itself如果您检查任何元素并取消选中页面上的任何 css 属性,问题会立即自行纠正

I'm using suitecommerce which I don't have full control over the source code.我正在使用我无法完全控制源代码的套件商务。 And if you know anything about Suitecommerce I can't really rely on their developers to fix anything in a timely manner.而且,如果您对 Suitecommerce 有所了解,我就不能真正依靠他们的开发人员及时修复任何问题。

To reproduce the problem :重现问题

Here's an example page: https://www.1800cpap.com/airfit-p30i-nasal-pillow-cpap-mask-by-resmed这是一个示例页面: https://www.1800cpap.com/airfit-p30i-nasal-pillow-cpap-mask-by-resmed

Once you land on the page, scroll down to the tabbed section and click any tab.登陆页面后,向下滚动到选项卡部分,然后单击任何选项卡。 If you don't see the problem you might have to navigate away from the page and back to it OR you can navigate to any product page.如果您没有看到问题,您可能需要离开该页面并返回该页面,或者您可以导航到任何产品页面。 Once you see the problem inspect any element, uncheck any css property and the problem will be fixed instantly.一旦您看到问题检查任何元素,取消选中任何 css 属性,问题将立即得到解决。 It only happens on Chrome 77.它只发生在 Chrome 77 上。

I'm happy to provide code but I'm honestly not sure where to even start.我很乐意提供代码,但老实说,我什至不知道从哪里开始。 The platform is built using backbone.js该平台使用backbone.js构建

Any thoughts would be welcomed.任何想法都会受到欢迎。

The issue comes from your tabs list that has height 0. Why?问题来自高度为 0 的选项卡列表。为什么? => read here => 在这里阅读

This code should fix it:这段代码应该修复它:

ul.product-details-information-content-tabs {
    float: left;
    width: 100%;
    margin: 0;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM