行。我有一个字段集菜单。如果我对最后一项进行硬编码,则 alt 有效:
<td>
<a href="show.hotpartslist?clearFilters=true">
<img class="icon" title="Clear All Filters" alt="Clear All Filters" src="../images/clear_all.gif"/>
</a>
</td>
但是这个是用一些逻辑构建的,它呈现如下:
<td>
<ul id="hp-sor-menu" style="display:none;"><li><img alt="Filter by Source of Repair" src="../images/sor.gif" /><ul><li><a href="show.hotpartslist?sor=ALL">→ ALL</a></li><li><a href="show.hotpartslist?sor=A"> MCA</a></li><li><a href="show.hotpartslist?sor=B"> MCB</a></li><li><a href="show.hotpartslist?sor=E"> BIC</a></li><li><a href="show.hotpartslist?sor=O"> OTHER</a></li></ul></li></ul><script type="text/javascript">
$(function()
{
try
{
DynarchMenu.setup('hp-sor-menu', { });
}
catch(exception)
{
alert("Failed to render other menu: " + exception.description);
}
});
并且鼠标悬停时不显示alt