Joomla 1.5 / CK表单:需要帮助调试JavaScript工具提示上的字体大小

Joomla 1.5 / CK Forms: Need help debugging font size on javascript tooltip

本文关键字:工具提示 JavaScript 调试 字体 帮助 CK 表单 Joomla      更新时间:2023-09-26

我有一个安装了CK Forms的Joomla 1.5网站。一切正常,但验证码上有一个工具提示,无法正确显示。它以 1px 字体大小显示。如果我尝试调试Firebug中的元素,则字体设置正确。它有两个属性:

#ckformcontainer .ckform div.error {
  display: none;
  font-size:12px;
}

如果我尝试使用 Firebug 删除显示:none,那么它会正确显示,但是使用鼠标悬停时字体真的很小。看看这里:

https://www.autismworks.co.uk/expressionofinterest

滚动到底部并在验证码附近查找"i"。

到目前为止,我已经发现 1px 字体大小实际上来自 body 元素,尽管被其他样式覆盖了?!

该元素是:

<div id="errorck_captcha_code" class="error"> Please try to enter the captcha again, the code was not accepted this time. </div>

我在Windows 7上使用Firefox 9.0.1(将升级以测试),但这似乎也发生在IE中。

您需要

设置 CSS 规则以强制.tool-tip为更大的字体大小。这将解决它:

.tool-tip {
    font-size: 14px !important;
}

将其放在您的一个 CSS 文件中。