0

仅在 IE 上,工具提示显示在链接文本下方,因此无法阅读工具提示中的文本。我知道我可以将工具提示移到右侧,但这看起来不太好。如何使工具提示背景成为实心或在链接顶部。我已经尝试过 z-index。

<ul style=" list-style: circle;  margin: 0px 2px 0px 12px;">
    <li style="z-index:10">
        <a class="tooltip" href="abc.com"> <span class="classic" ><%= content %></span></a>
    </li>
</ul>
.classic  
{
    padding: 0.8em 1em; 
    display:none; 
    text-decoration: none;
     list-style: circle;
     background:#FFC62E;
}

.tooltip {
  border-bottom: 1px dotted #000000;
  color: #000000; 
  outline: none;
  text-decoration: none;
  position: relative; 
}
.tooltip span 
{
    display:inline;
  margin-left: -999em;
  position: absolute;
  text-decoration: none; 
  color:#000000;
}
.tooltip:hover span {
  font-family: Calibri, Tahoma, Geneva, sans-serif;
  position: absolute;
  left: 1em;
  top: 2em;
  z-index: 1; 
  margin-left: 170;
  width: 250px;
  display:inline-block;
  background-color: #FFC62E; 
  background:rgb(255,198,46); 
  position:absolute;
  text-decoration: none; 
  color:#000000;
  border-radius: 5px 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
  -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);
}
4

1 回答 1

0

这个怎么样:

http://fiddle.jshell.net/br6AP/

于 2012-07-31T22:36:44.237 回答