简体   繁体   English

Internet Explorer中的jQuery Countdown插件问题

[英]jQuery Countdown plugin issue in Internet Explorer

I'm trying to use jQuery Countdown to count down to a particular date in 'full' mode (that is, the compact option set to false ). 我正在尝试使用jQuery Countdown在“完整”模式下倒计时到特定日期(即, compact选项设置为false )。 The problem is, the last date component, whether it is seconds, minutes, or whatever has been specified in the format option breaks off on to the next line in Internet Explorer (checked on both IE7 and IE8) when the timer is rendered: 问题在于,呈现计时器时,最后一个日期部分(无论是秒,分钟还是在format选项中指定的任何内容)在Internet Explorer(在IE7和IE8上均选中)的下一行中断:

    $(function () {
        var austDay = new Date(2009, 11, 11);
        $('#defaultCountdown').countdown({until: austDay, 
                                          format: 'ODHMS', 
                                          compact: false});
    });

Unfortunately I can't provide a screen grab at this time as I'm using a mac. 不幸的是,由于我使用的是Mac,因此目前无法提供屏幕抓取功能。 It works just fine in compact mode, but it's not nearly as pretty. 它在紧凑模式下可以正常工作,但效果却不尽如人意。

Has anyone experienced this and devised a workaround/fix? 有没有人经历过这种情况并设计了解决方法/修复程序? Any ideas? 有任何想法吗?

Did you try adding a style rule in? 您是否尝试过添加样式规则? This will eliminate line breaks inside the container. 这将消除容器内的换行符。

#defaultCountdown { white-space: nowrap; }

Or...am I completely misunderstanding your problem? 或者...我完全误解了您的问题吗?

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

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