Is it possible to add html inside a title attribute?

前端 未结 8 1671
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-30 14:57

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 mouseo

8条回答
  •  执念已碎
    2020-11-30 15:30

    I think a good option is to put that content inside a data attribute, something like this:

    Actual content

    And then, write a simple jQuery plugin that shows that content inside an element upon hover over.

提交回复
热议问题