gpt4 book ai didi

asp.net-mvc-3 - 在 Mvc3 中在图像上显示工具提示

转载 作者:行者123 更新时间:2023-12-04 22:23:19 26 4
gpt4 key购买 nike

我正在使用 asp.net MVC3,我想显示一个包含类(class)信息的表格
我有一个名为“信息”的字段,它显示了一个图像。
当鼠标放在该图像上时,我想显示工具提示

我正在显示这样的图像:

<img id="ok" src="../../Images/info.jpg" alt="tooltip"/>

我不想使用任何添加的插件

有人可以帮我吗?

最佳答案

在 Html 标签中使用 titlealt

<img id="ok" src="../../Images/info.jpg" title="This is your tooltip message"/>

关于asp.net-mvc-3 - 在 Mvc3 中在图像上显示工具提示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10653352/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com