如何禁用页面上的默认工具提示?我有这些mootools提示工作,但它显示页面上的默认值也使它变得混乱?
答案 0 :(得分:1)
通常,您只需要使用自定义工具提示从元素中删除title
属性。例如:
// After you created the tips with something like...
var myTips = new CustomTips($$('div.myelements'));
// You remove their title attribute to remove default tips
$$('div.myelements').each(function(el) { el.setProperty('title', ''); });