html实现鼠标悬停提示
每个html标签都有一个title属性,当鼠标hover该标签时,浏览器会展示出该标签的title内容。
<h1 title="这里是悬停的文字">悬停会有文字提示<h1>
html,document,window获取
-
html:document.documentElement -
document:document -
window:window -
head:document.head -
body:document.body








网友评论