更改显示HTML标题标记的速度
有没有办法改变文本悬停时标题标签内容显示的速度 e、 g更改显示HTML标题标记的速度,html,Html,有没有办法改变文本悬停时标题标签内容显示的速度 e、 g 这一切都需要JavaScript或jquery 试试这个 html 标题 jquery $("#book").append("<em></em>"); $("#book").hover(function() { $(this).find("em").animate({opacity: "show", top: "-75"}, "slow"); var hoverText = $(
这一切都需要JavaScript或jquery 试试这个 html
标题
jquery
$("#book").append("<em></em>");
$("#book").hover(function() {
$(this).find("em").animate({opacity: "show", top: "-75"}, "slow");
var hoverText = $(this).attr("title");
$(this).find("em").text(hoverText);
}, function() {
$(this).find("em").animate({opacity: "hide", top: "-85"}, "fast");
});
$(“#书”)。追加(“”);
$(“#book”).hover(函数(){
$(this.find(“em”).animate({opacity:“show”,top:“-75”},“slow”);
var hoverText=$(this.attr(“title”);
$(this.find(“em”).text(hoverText);
},函数(){
$(this.find(“em”).animate({opacity:“hide”,top:“-85”},“fast”);
});
检查
也请查看
<h1 id="book" title="hello onw" >the title </h1>
$("#book").append("<em></em>");
$("#book").hover(function() {
$(this).find("em").animate({opacity: "show", top: "-75"}, "slow");
var hoverText = $(this).attr("title");
$(this).find("em").text(hoverText);
}, function() {
$(this).find("em").animate({opacity: "hide", top: "-85"}, "fast");
});