2012-09-10 12 views

回答

6

嘗試,例如驗證碼:

$(this).css({ 'cursor': 'default !important' }) 
3
$("body") 
.ajaxStart(function() { 
    $(this).css({ 'cursor': 'progress !important' }) 
}) 
.ajaxStop(function() { 
    $(this).css({ 'cursor': 'default !important' }) 
}); 
+0

爲什麼會這樣投票呢? – thecodeparadox

+0

沒有我投下的票,但我猜是因爲其他答案說有問題!重要。我仍在查看所有鏈接。 –

+0

@SamanthaJ對我來說沒有問題。其他答案與我的答案有什麼不同?解釋 – thecodeparadox

1
+0

這與其他答案如何對應?現在我有點困惑。 –

+0

http://stackoverflow.com/questions/2655925/jquery-css-applying-important-styles – KyorCode

+1

你需要添加* style *函數的實現.. –

2

只需在您的房產價值後加上!important

$("body") 
    .ajaxStart(function() { 
     $(this).css({ 'cursor': 'progress !important' }) 
    }) 
    .ajaxStop(function() { 
     $(this).css({ 'cursor': 'default !important' }) 
    }); 
+0

爲什麼downvote請解釋一下? – Champ