【发布时间】:2016-01-29 22:47:46
【问题描述】:
我正在使用guiders.js 给用户提示。 虽然当 div 位于 iframe 内时,我在使用 attachTo 参数时遇到问题。
这是向导的代码:
guiders.createGuider({
attachTo: '#'+thisId,
buttons: [{name: "Ok", onclick: function(){
closeEdit();
guiders.hideAll();
}
}],
description: "<input value='new text'>",
id: "guiderToChangeParameter",
position: 3,
title: "title",
width: 400
}).show();
如果 thisId 引用页面内的 div id,则 attachTo 有效。
如果 thisId 引用 iframe 中的 div,则引导显示但不附加到 div。
这是 guiders.js 库的正常行为吗?有没有办法真正附加到 iframe 中的 div?
jsfiddle 显示 attachTo 工作:http://jsfiddle.net/y3mzP/1/ jsfiddle 不允许 iframe,所以很遗憾我无法重现。
【问题讨论】:
标签: javascript guiders.js