【问题标题】:ie 7 and below issue, absolute positioning即7及以下问题,绝对定位
【发布时间】:2011-09-27 23:44:37
【问题描述】:

出于某种原因,在 ie 7 及更低版本中,内容存在巨大差距。我认为这与我正在运行的一些 jQuery 有关。菜单似乎将内容向下推,即使它的绝对位置不应该在流程中?

http://www.tigerstudiodesign.com/company-overview/

即7及以下:http://localhostr.com/files/yshCtut/Screen+shot+2011-09-27+at+11.08.20+AM.jpg

它应该是什么样子: http://localhostr.com/files/Gq1DiuR/Screen+shot+2011-09-27+at+11.08.40+AM.jpg

【问题讨论】:

    标签: internet-explorer-7 position absolute


    【解决方案1】:

    试试这个

    #header {position: relative;}
    #content {position: absolute; left: 0; top: 135px; height: 40px; }
    

    【讨论】:

    • 这很难破解。我的布局大部分是浮动的,它只是具有绝对元素的菜单。
    猜你喜欢
    • 2011-11-25
    • 1970-01-01
    • 2011-07-25
    • 2011-12-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-26
    • 1970-01-01
    相关资源
    最近更新 更多