gpt4 book ai didi

javascript - 部分隐藏的 jQuery 倒数计时器

转载 作者:太空宇宙 更新时间:2023-11-04 14:16:33 24 4
gpt4 key购买 nike

我正在使用这个 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>

关于javascript - 部分隐藏的 jQuery 倒数计时器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20319587/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com