[英]Mootools 1.2 Custom Tooltip Error - Tooltips show image before hover
Having a bit of an issue woth mootools 1.2 Tips (cutsom tooltips) mootools 1.2提示(cutsom工具提示)有点问题
We are using Joomla with the latest update that includes Mootools 1.2 - and I have the following JS code 我们正在将Joomla与包含Mootools 1.2的最新更新一起使用-我有以下JS代码
$$('.tipz').each(function(element,index) {
var content = element.get('title').split('::');
element.store('tip:title', content[0]);
element.store('tip:text', content[1]);
});
var tipz = new Tips($$('.tipz'), {
className: 'tipz',
fixed: true,
hideDelay: 50,
showDelay: 50
});
My problem is that the background images I styled the tips with is showing up wether I mouse over the tip or not - its quite annoying. 我的问题是,无论是否将鼠标悬停在笔尖上,为笔尖设置样式的背景图像都会显示出来-这很烦人。
Has anyone else had this problem/ knows a fix for it? 其他人有这个问题/知道解决办法吗?
Thanks in advance, 提前致谢,
Michael 麦可
Make sure your CSS background property is on the hover status of your tooltip 确保您的CSS后台属性位于工具提示的悬停状态
tool-tip:hover { background: ... }
Or 要么
tool-tip:hover tool-text { background: ... }
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.