简体   繁体   English

页面底部在 Safari 中被截断

[英]Bottom of page gets cut off in Safari

I can't figure out why this page: http://wohf.squarespace.com/newsletter/ gets cut off at the bottom in safari, seems to work fine in all other browsers (as far as I found so far)!!我不明白为什么这个页面: http: //wohf.squarespace.com/newsletter/ 在 safari 的底部被切断,似乎在所有其他浏览器中都可以正常工作(就我目前发现的而言)!!

I am using some jquery and css for the sidebar and the content to match heights and for the canvas to run top to bottom with the footer always at the very bottom of the page.我为侧边栏和内容使用了一些 jquery 和 css 以匹配高度,并使画布从上到下运行,页脚始终位于页面的最底部。 everything is working (as far as I can tell so far) on the rest of the site, the problem is only on this newsletter page and only in safari.在网站的其余部分一切正常(据我目前所知),问题仅在此时事通讯页面上,并且仅在 safari 中。

Can anyone see the problem?任何人都可以看到问题吗?

Here is the jQuery I am using:这是我正在使用的 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);
}

It is cut off in Firefox for me, but look at your CSS you have overflow: hidden styles everywhere.对我来说,它在 Firefox 中被切断了,但是看看你的 CSS,你已经溢出了:到处都是隐藏的样式。 I would start by removing those.我会先删除那些。

window.navigator.platform === 'iPhone' ? window.navigator.platform === 'iPhone' ? true:false真假

then on the div's style try adding然后在 div 的样式上尝试添加

paddingBottom:window.navigator.platform === 'iPhone' ? paddingBottom:window.navigator.platform === 'iPhone' ? '15vh':'0vh' into your inline style for that element. '15vh':'0vh' 到该元素的内联样式中。

for react.js it would look like对于 react.js,它看起来像

PAGE CONTENT HERE 页面内容在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM