【发布时间】:2011-01-28 20:55:58
【问题描述】:
我不明白为什么这个页面:http://wohf.squarespace.com/newsletter/ 在 safari 的底部被截断,似乎在所有其他浏览器中都可以正常工作(据我目前发现)!!
我正在使用一些 jquery 和 css 作为侧边栏和匹配高度的内容,并使画布从上到下运行,而页脚始终位于页面的最底部。网站的其余部分一切正常(据我所知),问题仅在此时事通讯页面上且仅在 safari 中。
谁能看出问题所在?
这是我正在使用的 jQuery:
//***************************************
// Position Elements on Newsletter Page
//***************************************
// Clear previously specified heights
$("#modulePage6177253, #modulePage6177253 #canvasWrapper, #modulePage6177253 #canvas").height('auto');
$("#moduleContentWrapper6177535").insertBefore("#modulePage6177253 #pageBodyWrapper");
$("#moduleContentWrapper6177544").appendTo("#modulePage6177253 #pageFooterWrapper");
$("#modulePage6177253 #pageFooterWrapper").insertAfter("#modulePage6177253 #canvasWrapper");
equalHeight($("#modulePage6177253 #sidebar1, #modulePage6177253 #content"));
equalHeight($("#modulePage6177253, #modulePage6177253 #canvasWrapper, #modulePage6177253 #canvas"));
$("#modulePage6177253 #canvasWrapper").css("margin-bottom", "-100px");
function equalHeight(group) {
tallest = 0;
group.each(function() {
thisHeight = $(this).height();
if(thisHeight > tallest) {
tallest = thisHeight;
}
});
group.height(tallest);
}
【问题讨论】:
-
对我来说没有被切断。
-
哦!伟大的!谢谢!只是为了跟进,左侧边栏底部文本中的最后一个单词应该是“家庭”,并且在最底部应该有一个蓝色背景页脚,其中包含基本页脚文本。在 Mac 上使用 Safari 4.0.3 时,它对我来说很重要。但我还没有在其他地方发现问题。