jQuery倒计时计时器部分隐藏

jQuery countdown timer partially hidden

本文关键字:隐藏 计时器部 倒计时 jQuery      更新时间:2024-01-05

我使用的是这个jQuery倒计时计时器,它在大多数情况下都很好用,但我不明白为什么倒计时的数字部分被部分隐藏。

http://techtraininghall.com/home-sound-systems-buying-guide-for-homeowners/

它不像他们演示中的那样流畅http://www.littlewebthings.com/projects/countdown/example/?style=light

我认为这与倒计时时的溢出有关,但我不能确定。任何想法都非常感谢。

在主题的样式表中:

http://techtraininghall.com/wp-content/themes/minimum/style.css?ver=2.0.1

有一组元素的line-height定义:

/* Defaults
------------------------------------------------------------ */
body,
h1,
h2,
h2 a,
h2 a:visited,
h3,
h4,
h5,
h6,
p,
input,
select,
textarea {
    color: #555;
    font-family: 'Droid Serif', arial, serif;
    font-size: 14px;
    font-weight: normal;
    line-height: 22px;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

这限制了默认的line-height:22px,这是问题的根本原因。

要修复它,您可以在此页面中修改自定义样式:

<style id="spp-countd-header-css">
    .dash .digit {margin-top: 40px;} #spp_countd_panel {display: inline-block; height: 1%;}
</style>

至:

<style id="spp-countd-header-css">
    .dash .digit {margin-top: 12px; line-height: 55pt; } 
    #spp_countd_panel {display: inline-block; height: 1%;}
</style>