gpt4 book ai didi

html - 改变 HTML Title 标签显示的速度

转载 作者:可可西里 更新时间:2023-11-01 13:14:39 24 4
gpt4 key购买 nike

有没有办法改变当文本悬停在上面时标题标签的内容显示的速度/速度?

例如

<h1 title="show up title">

最佳答案

这一切都需要 JavaScript 或 jquery

试试这个

html

<h1   id="book" title="hello onw"  >the title </h1>

j查询

    $("#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");
});

检查fiddle

同时检查 this

关于html - 改变 HTML Title 标签显示的速度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12550171/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com