javascript - 奇怪的 JS 或 CSS(无法弄清楚哪个问题)相关问题

标签 javascript html css debugging layout

请访问this link .

当我在 chrome 或 firefox 上打开它并刷新多次时,我得到以下屏幕:

enter image description here

我真的不明白为什么会出现这个问题。此外,两种浏览器的 firebug 都没有错误:Chrome 和 Firefox。有什么建议么?

最佳答案

尝试给 #front-slides 一个高度(在本例中为 370px)并将其设置为 overflow: hidden;,然后移除 .slides_container 上的溢出

这似乎解决了我的问题,问题似乎是 .slides_control 的高度设置错误,显然它在加载之前设置为图像高度。

您的其他解决方案是手动将 .slides_control 的高度设置为 370px 或更改计算直到页面加载完毕。

关于javascript - 奇怪的 JS 或 CSS(无法弄清楚哪个问题)相关问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12885894/

相关文章:

javascript - 响应式导航菜单,元素 "tuck under"彼此

javascript - 转义来自 JSON 的引号

javascript - 使用 Jquery Mobile 在 <div> 标签上添加过渡动画

css - Bootstrap : vertically align paragraph text and buttons

javascript - 在不同层显示 div?

c# - 将 .NET DateTimeFormatInfo 转换为 Javascript jQuery formatDate?

javascript - 如何修复使用 Javascript 返回 403 但适用于其他语言的 REDCap API 请求

javascript - 返回 NaN 值

javascript - 切换 div 重定向到带有 ID 的链接

javascript - 如何在 <div> 标签之间切换?