简体   繁体   English

是否可以在ASP.Net中为Web Controller Tooltip设置固定位置?

[英]Is it possible to set a fixed position for Web Controller Tooltip in ASP.Net?

I am having an ImageButton with Tooltip as shown below, 我有一个带TooltipImageButton ,如下所示,

<asp:ImageButton ID="btnDEmail" ImageUrl="~/Images/email.png" 
     runat="server" Height="100px" ToolTip="Email" 
     BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" 
     OnClick="Email_Click" />    

When I try to hover on the ImageButton the tooltip shows on random places near the pointer. 当我尝试将鼠标悬停在ImageButton ,工具提示会显示在指针附近的随机位置。 Is it possible to display the tooltip on the right side of button or in any place other than popping on the image button? 是否可以在按钮的右侧或除弹出图像按钮以外的任何位置显示tooltip

No, its not. 不,这不对。 The Tooltip property, turns actually into the title property of the <img> element. Tooltip属性实际上变成了<img>元素的title属性。 The title property's show event is handled by the browser, not subject to manipulation. title属性的show事件由浏览器处理,无需进行操作。

You would have to build (or find) a custom tooltip for your element. 您将必须为您的元素构建(或找到)自定义工具提示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是否有可能在asp.net的下拉菜单中显示工具提示 - Is It possible to show tooltip on dropdown in asp.net 忽略 ASP.NET Web ZDB974238714CA8DE634A7CE1D083A14 中的 controller - Ignore controller in ASP.NET Web API 在Mozilla Firefox中通过ASP.NET进行多行工具提示 - 这可能吗? - Multiline tooltip via ASP.NET in Mozilla Firefox - is it possible? 是否可以在特定控制器中使用任意中间件,或者在ASP.NET Web API2中使用过任何方法? - Is it possible to use arbitrary middleware in specific controller or ever method in asp.net web api2? 是否可以从正在运行的MVC Web应用程序中的测试中调用ASP.NET MVC控制器方法? - Is it possible to call ASP.NET MVC controller methods from a test in a running MVC web application? 是否可以使用多个Http属性装饰ASP.NET WEB API控制器方法 - Is it possible to decorate ASP.NET WEB API controller method with more than one Http attribute 通过C#代码中的方法在ASP.net中设置的工具提示 - Tooltip set in ASP.net by method in c# code 建模 ASP.NET Core 控制器更新以获得多种可能的结果 - Modeling ASP.NET Core Controller update for multiple possible outcomes 如何对该ASP.NET Web App Controller进行单元测试? - How to unit test this ASP.NET Web App Controller? 如何在ASP.NET MVC / Web控制器中返回JSON? - How to return JSON in a ASP.NET MVC/web controller?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM