繼續我最後一個問題。我現在有這樣的:爲什麼錨不顯示手形光標?
<a id='testOne'>One</a>
與此javascript:
//To remove the title and default action.
$("#testOne").attr("title", "").click(function(e){
e.preventDefault();
}).attr("onclick", null);
//To reset the title and action
$("#testOne").attr("title", "Test One").click(function(e){
doTest('one');
});
但是,當我的鏈接(這是風格像一個按鈕)復位,則光標是一個十字,而不是一個指針。我檢查並設置爲auto
。有什麼方法可以將它設置爲指針?
你有什麼的鏈接,如果它沒有任何地方連接? –
你的意思是'$(「#testOne」)'不是'$(「testOne」)'。 – JJJ