是否可以在title属性中添加html? [英] Is it possible to add html inside a title attribute?

查看:155
本文介绍了是否可以在title属性中添加html?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法将实际的html代码放在表格行元素的title属性中?我的目标是不仅弹出文本,还弹出一些信息图形,因此鼠标悬停事件不是模态的。我的方向是错误的吗?

Is there a way to put actual html code inside a title attribute on a table row element? My goal is to pop-up not only text but some info-graphics along with it, so a mouseover event thats not a modal would be great. Am I going in the wrong direction?

这个表已经在使用jquery数据表,但我不相信它可以做那种事件。

This table is already using jquery datatables but I don't believe it can do that sort of event.

<tr title='This activity will be open to registration on April 31st' >
.....
</tr>


推荐答案

不。您需要使用JavaScript创建自己的标题替代品。

Nope. You'd need to create your own title substitute with JavaScript.

这篇关于是否可以在title属性中添加html?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆