Internet Explorer中的工具提示问题

css代码

/*********************/ /* Tooltip */ /*********************/ a.tooltip, a.tooltip:link, a.tooltip:visited, a.tooltip:active { position: relative; text-decoration: none; cursor: pointer; font-style: italic; } a.tooltip:hover { font-weight: bold; background: transparent; visibility:visible; } a.tooltip span { display: none; text-decoration: none; } a.tooltip:hover span { display: block; position: absolute; top: 20px; left: 0; z-index: 2000; color: #000000; border:1px solid #000000; background: #efefef; font-family : Verdana, Arial,Helvetica,sans-serif; font-size: 11px; text-align: left; } a.tooltip span b { display: block; margin: 0; padding: 2 2 2 2; font-family : Verdana, Arial,Helvetica,sans-serif; font-size: 12px; font-weight: bold; font-style: normal; color: #FFFFFF; background-color: #000000; border-bottom: 1px solid black; } .analyzerGuiStatistics .queriesPerDayTable{ border-spacing: 0px; /* -> This property will not be interpreted correctly even up to IE 7; normally substitute for cellspacing="0"; */ border-collapse: collapse; /* this will work in ie and moz */ width: 150px; } 

jsp代码

     <%for (inta=0a <tr class=""> 

上面的工具提示在Firefox中运行良好,但在IE中却不行?

IE不支持:hover在没有href属性的锚标签上。

您需要将属性添加到代码中以使其在IE中工作例如:

  

你质疑如何接受答案

在此处输入图像描述

  1. LHS有一个未选择的答案,单击勾选标记使答案接受答案
  2. 1表示1票, -1表示1票
  3. 为了投票,按下upward faced pyramid并对另一个upward faced pyramid进行投票,在场外你需要有足够的声望点。 所以开始接受你的问题的任何答案,人们会愉快地回答你的问题:)

希望这能回答你的问题How to accept? I have no idea.? How to accept? I have no idea.?