【问题标题】:Change background color and font of tool tip for ASP. Net controls更改 ASP 工具提示的背景颜色和字体。网络控制
【发布时间】:2011-04-07 18:23:18
【问题描述】:

对于 ASP.Net 控件,如何更改工具提示的背景颜色、字体名称、大小、字体颜色?是否可以为工具提示添加背景图像而不是默认的黄色背景?

【问题讨论】:

  • 您目前是如何实现工具提示的?即使用标题 /.Tooltip / CSS ??也许是一些示例代码?
  • 我刚刚在 ASP.Net 控件中使用了工具提示属性来更改正在显示的工具提示的文本。例如:txtPassword.ToolTip="密码至少要有一个特殊字符和数字。";

标签: asp.net


【解决方案1】:

此问题可能重复:How to change the background color of the tooltip for a control available inside gridview on hover

基本上,您无法更改默认工具提示颜色。你必须使用一些自定义的东西。有很多 jQuery 和 CSS 方法可以解决这个问题。默认工具提示由浏览器控制,不可自定义。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-06-10
    • 1970-01-01
    • 2021-12-21
    • 1970-01-01
    • 1970-01-01
    • 2015-06-28
    相关资源
    最近更新 更多