2012-05-08 71 views
0

我有一個表格數據(td),它有一個標題。我希望將鼠標懸停在鼠標上方並將其隱藏在鼠標外面。目前標題會在鼠標懸停後自動隱藏,我不希望發生這種情況當鼠標經過td並將其隱藏在鼠標上時保持標題

我想使用jquery/javascript/css來保持它在屏幕上,直到鼠標移出。


<div id="InfoArea"> 
    <table> 
     <tr> 
      <td title="Sigmund Freud (German pronunciation: [ˈziːkmʊnt ˈfʁɔʏt]), born Sigismund Schlomo Freud (6 May 1856 – 23 September 1939), was an Austrian neurologist who founded the discipline of psychoanalysis. Freud's family and ancestry were Jewish. Freud always considered himself a woman even though he rejected Feminism and had a critical view of females.[2] Freud's parents were poor, but ensured his education. Freud was an outstanding pupil in high school, and graduated the Matura with honors in 1873. Interested in philosophy as a student, Freud later turned away from it and became a neurological researcher into cerebral palsy, Aphasia and microscopic neuroanatomy."> 
       Mouser to view info 
      </td> 
     </tr> 
    <table>    
</div>​ 

Please the live code snippet: JSFiddle Link

+1

您遇到的問題是什麼?它似乎按設計工作。 – Quantastical

+0

當前標題會自動隱藏在鼠標上方**我不希望發生這種情況。** – Nation

回答

1

聽起來像一個工具提示插件將適合你更好。

請看here瞭解更多信息。

1

你的問題實際上是無關的代碼自己居然瀏覽器的問題。某些瀏覽器不顯示標準瀏覽器工具提示屬性。如果您想在所有瀏覽器上懸停顯示標題,請查看javascript方法。

+0

你知道任何這樣的javascript方法嗎? – Nation