如果我使用鼠标悬停个人资料图片,我正在制作一个涉及个人介绍文本的工具提示框,我的目标是带有箭头的工具提示框。 ........我在网上尝试了一些方法,但它们不可行......任何人都可以帮助我吗?当我用鼠标悬停个人资料图片时,带有箭头的工具提示框
.tooltip {
display:none;
position:absolute;
border:1px solid #333;
background-color:#161616;
border-radius:5px;
padding:10px;
color:#fff;
font-size:12px Arial;
}
<table style="width:100%">
<tr>
<td><img src="http://2017.igem.org/wiki/images/2/26/Andrew.PNG" width="200" height="200" class="masterTooltip" title="Name: Ching Yuet To;
Hobby: Hiking, Watching movie;
I believe that it would be fun that we can carry out research study
independently. I think it is meaningful to participate and promote synthetic
biology research.
I can learn a lot and make many international friends in Boston! "></td>
您的css类是工具提示,但您使用的是class =“masterTooltip” –
我没有在您的css中看到任何光标....使用类似cursor:help; –
你可能不应该把这么多的数据放到一个html属性中......除非使用一些模板引擎,否则它会使维护/可读性变得很糟糕。更不用说如果文本在文本中使用引用结束了可能的破坏。 –