如果我使用鼠標懸停個人資料圖片,我正在製作一個涉及個人介紹文本的工具提示框,我的目標是帶有箭頭的工具提示框。 ........我在網上嘗試了一些方法,但它們不可行......任何人都可以幫助我嗎?當我用鼠標懸停個人資料圖片時,帶有箭頭的工具提示框
.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屬性中......除非使用一些模板引擎,否則它會使維護/可讀性變得很糟糕。更不用說如果文本在文本中使用引用結束了可能的破壞。 –