【问题标题】:Chrome is not changing the parent div size as dynamic content grow ? Firefox and IE is working fineChrome 不会随着动态内容的增长而改变父 div 的大小? Firefox 和 IE 运行良好
【发布时间】:2013-05-19 15:52:38
【问题描述】:

我正在使用 jquery 和 php 脚本在页面上加载动态内容。Mozilla 正在获取动态内容并增加 div 的大小。以下是代码。

#whtshot{width:700px; min-height:200px; height:auto !important; background:blue;position:relative; padding-bottom: 500px; clear:both;left:10px;top:200px; }  

.newsbox{width:640px;height:460px;position:relative;margin:auto;top:10px;background:white;box-shadow: 2px 2px 2px #888;}

#transbox {width:1305px; height:auto !important;min-height:212;clear:both;background:rgb(250, 250, 250);position:relative;margin:auto;opacity:1;filter:alpha(opacity=60); /* For IE8 and earlier */box-shadow:0 0 10px #9ecaed;}

Transbox 是包装器,whtshot 是新闻框的容器 here is the link查看页面在哪里

在添加溢出:隐藏到 transbox.. 不是在谷歌浏览器中滚动.....?? Mozilla 和 IE 都可以。

【问题讨论】:

    标签: google-chrome html cross-browser dynamic-content


    【解决方案1】:

    transbox{overflow:hidden} ----------- 它会起作用,但要确保它不会妨碍其他,还有一件事,你的用户太多(!重要),最佳实践不要使用。

    【讨论】:

    • Thnks 我已经完成了你所说的更改,但是如果关闭谷歌 crome 中的页面滚动,但仍然可以与 firefox 很好地配合... thnx for firefox,但我需要它在 google 上工作chrome ...请帮助我
    • 你可以看到给出的更改链接
    猜你喜欢
    • 1970-01-01
    • 2016-02-13
    • 1970-01-01
    • 2017-11-22
    • 1970-01-01
    • 1970-01-01
    • 2021-12-30
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多