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