鼠标经过文字显示说明

来源:百度知道 编辑:UC知道 时间:2024/05/21 05:41:36
请问各位高手,怎么样在HTML中实现当鼠标经过一段文字时显示一段说明文字。

<a title="要显示的文字">link</a>
<span title="要显示的文字">span</span>
<div title="要显示的文字">div</div>
.......
好多的标签都支持的
如果是图片还可以用<img alt="要显示的文字" src="你的图片">

用这个:
<html>
<head>
<style type="text/css">
<!--
a:link { color: #0020FF; text-decoration: none;font-size: 9pt}
a:visited { color:#0020FF; text-decoration: none;font-size: 9pt}
a:hover { color: #585858; text-decoration: underline;font-size: 9pt}
-->
</style>
<style>
<!--
#PCL {
font-family:宋体 ;
font-style: none;
font-weight: normal;
text-decoration: none;
font-size: 9pt;
}
#PTT {
font-family: 宋体;
font-size: 9pt;
}
#PST {
font