最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - overflow hidden - problem in IE7 - Stack Overflow

programmeradmin6浏览0评论

i am using this plugin / and i find that it have problems in IE 7

the overflow: hidden is not working (file js)

anyone know how this can be fixed? and if we can solve this issue i obviously will share with developer

thanks!

i am using this plugin http://www.wbotelhos./capty/ and i find that it have problems in IE 7

the overflow: hidden is not working (file js)

anyone know how this can be fixed? and if we can solve this issue i obviously will share with developer

thanks!

Share Improve this question edited Mar 28, 2011 at 17:01 daniel__ asked Mar 28, 2011 at 16:50 daniel__daniel__ 11.9k16 gold badges67 silver badges91 bronze badges 1
  • the code? you have the source in the link. I have exactly the same problem. That is a problem in the plug in, not in my code. You can see if you use the IE7 or 6 please – daniel__ Commented Mar 28, 2011 at 17:04
Add a ment  | 

2 Answers 2

Reset to default 8
this solve the issue:

line added:

position: 'relative',

final code

$wrapper.css({
            overflow:   'hidden',
            position: 'relative',
            height:     $this.height(),
            width:      $this.width()
        });

before IE version 8, some style properties, including overflow, only apply to an element if the element has what IE calls the hasLayout attribute, set explicitly or automatically when its position is set to relative or absolute (set, not inherited). The doctype must also be one that does not force IE 'quirks' mode.

发布评论

评论列表(0)

  1. 暂无评论