IE では角が丸く表示されません。出したら効き:hover
ます。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
.tooltip {
position:absolute;
text-decoration: none;
display:inline-block;
}
.tooltip span {
margin-left:-999em;
}
.tooltip:hover span {
background-color: black;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
color: #fff;
display: inline-block;
position: relative;
left: 30px;
padding: 10px;
top:0px;
z-index:1;
behavior:url(PIE.htc);
margin-left:0;
}
</style>
</head>
<body>
<label>This is a label
<a href="#" class="tooltip">
<img src="img/help.jpg" style="border:1px solid black;width:15px;height:15px;position:absolute;left:5px;top:5px;"/>
<span>This is a test</span>
</a>
</label>
</body>
</html>