将笔记置于内部(绝对)
重要性:5
扩展上一个任务 在元素附近显示笔记(绝对):教函数 positionAt(anchor, position, elem) 将 elem 插入 anchor 内。
position 的新值
top-out、right-out、bottom-out– 工作方式与之前相同,它们将elem插入anchor的上方/右侧/下方。top-in、right-in、bottom-in– 将elem插入anchor内:将其粘贴到上/右/下边缘。
例如
// shows the note above blockquote
positionAt(blockquote, "top-out", note);
// shows the note inside blockquote, at the top
positionAt(blockquote, "top-in", note);
结果
作为源代码,请使用任务 在元素附近显示笔记(绝对) 的解决方案。