我正在使用 Jquery 工具提示。
如何在鼠标悬停的文本框单击时显示工具提示。什么 css 用于在中心显示工具提示箭头(对于第二个文本框),以便第二个文本框向下移动。
HTML
<br/><br/>
<input id="ag22" title="We ask for your age only for statistical purposes.We ask for your age only for statistical purposes.We ask for your age only for statistical purposes.We ask for your age only for statistical purposes.We ask for your age only for statistical purposes." />
<br/><br/>
<input id="ag22" title="We ask for your age only for statistical purposes." />
jQuery
$(document).tooltip({
position: {
my: "left center",
at: "right center",
using: function (position, feedback) {
$(this).css(position);
$("<div>")
.addClass("arrow")
.addClass(feedback.vertical)
.addClass(feedback.horizontal)
.appendTo(this);
}
}
});
这是我尝试过的链接:http: //fiddle.jshell.net/b7SCN/