0
我在我的web应用程序中使用了很多LinkButtons,其中包含文本和图像。 所有LinkButton都设置了一个工具提示,并且LinkButton中的所有图像都设置有替代文本。ASP.NET LinkButton工具提示被图像替代文本覆盖
<asp:LinkButton CssClass="button button-input" ID="btnSearch" runat="server" CausesValidation="False" ToolTip="Search">
<img id="imgSearch" runat="server" src="../../../images/icons/magnifier-left.png" alt="search-something" width="12" height="12" />
</asp:LinkButton>
的问题是,在Internet Explorer中的图像的替代文本中示出的代替的LinkButton的工具提示。在Firefox中这个问题不存在,它总是显示LinkButton的工具提示。
这是产生XHTML:
<a href="javascript:__doPostBack('...','')" title="Search" id="..."><img width="12" height="12" alt="search-something" id="..." src="../../images/icons/magnifier-left.png"></a>
是否有可能解决这个问题? 删除所有备用文本将解决问题,但始终欢迎更好(更标准)的方式!
使用的 的伎俩。我需要替换很多LinkButtons,或者删除alt-attribute。 –
thomasvdb
2010-08-27 11:24:10