【问题标题】:website looks weird on IE and Firefox网站在 IE 和 Firefox 上看起来很奇怪
【发布时间】:2016-04-07 23:21:16
【问题描述】:

在 chrome 和 Safari 上,一切看起来都很棒。这是示例网址:

http://gismanka.pl/2015/12/29/21-dni-w-japonii-czesc-i-plan-hiroszima-i-zachodnie-honsiu/

我正在寻找一些 jquery 问题,但在 chrome 上没有重大问题。有什么想法吗?

【问题讨论】:

  • 与我们分享您的 ff 和 ie 版本。
  • script.js 在第 85 行出现错误。未捕获的 ReferenceError: checkSize is not defined
  • On chrome and Safari everything looks great,然后是but on chrome there are no major issues。哇,那太好了……
  • Too many float: right floating right 的跨浏览器兼容性真的很差。如果您从正文中删除float: right,它会将其一半固定在ff 上,即,仍然有所有其他float: right

标签: jquery html css internet-explorer firefox


【解决方案1】:
function checkSize(){
                    if ($(window).width() > 480) {
                        //$("html, body").animate({ scrollTop: 0 });                        
                    } else { 
                        $("html, body").animate({scrollTop:$('.widget-bar').offset().top - 150}, 'slow');  
                    }
                } 

此功能不存在并导致问题。修复此问题可能会解决问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2013-02-24
    • 1970-01-01
    • 1970-01-01
    • 2016-06-28
    • 2020-06-23
    • 1970-01-01
    • 2022-12-18
    • 1970-01-01
    相关资源
    最近更新 更多