<a data-title="提示"> 提示</a>
css样式说明:
a:hover {
position: relative;
}
a[data-title]:hover:after {
content: attr(data-title);
padding: 6px 10px;
color: #fff;
background-color: #000;
position: absolute;
left: 10%;
top: -45%;
z-index: 20;
white-space: nowrap;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
// -moz-box-shadow: 0px 0px 4px #222;
// -webkit-box-shadow: 0px 0px 4px #222;
// box-shadow: 0px 0px 4px #222;
}