<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style type="text/css">
a.demo{
position:relative;
}
a.demo span{
display:none;
}
a.demo:hover span{
position:absolute;
display:block;
top:-0.6em;
left:12em;
}
span{
color:#F00;
}
</style>
</head>
<body>
<p>
<a href="http://www.baidu.com" class="demo">welcome to beijing! <span>how are you</span> you are welcome</a>
</p>
</body>
</html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style type="text/css">
a.demo{
position:relative;
}
a.demo span{
display:none;
}
a.demo:hover span{
position:absolute;
display:block;
top:-0.6em;
left:12em;
}
span{
color:#F00;
}
</style>
</head>
<body>
<p>
<a href="http://www.baidu.com" class="demo">welcome to beijing! <span>how are you</span> you are welcome</a>
</p>
</body>
</html>