2012-07-23 211 views
0

當我將鼠標移過ASPNET鏈接按鈕時,它不會變成粗體字體,我該怎麼做?鼠標移過來的鏈接按鈕變得更大,字體加粗

enter image description here

a:hover{something here} 

不起作用

+1

[你嘗試過什麼或者發現迄今(http://whathaveyoutried.com) ? – JMax 2012-07-23 08:54:47

+1

檢查linkbuttons'css'請... – naveen 2012-07-23 08:55:48

+0

您需要提供該按鈕的CSS,或者使用瀏覽器調試工具自行找到它們並進行修復。 – Aristos 2012-07-23 08:56:48

回答

1

你可以做的是添加或鏈接按鈕刪除屬性像

$( '#LinkBut​​ton的-ID「')。鼠標懸停(function(){('this')。attr(「font-weight」,「weight:bold」)

});

$('#LinkBut​​ton的-ID「 ')鼠標懸停(函數(){ $(' 這)removeAttr( 」字體權重「)

});

可以使用addClass或還的jQuery removeClass功能,它們提供功能超過元素添加CSS類的任何影響

+0

謝謝,但我寧願使用CSS,以便所有linkbuttons具有相同的風格。 – anmarti 2012-07-23 09:46:55