2014-01-11 66 views

回答

1

做到这一点是使用filter()像下面的方式,但目标选择*是一个坏的,所以尽量有更好的选择目标所需的元素

$('*').filter(function() { 
    return this.style.float == 'left' 
}).css('float', '').addClass('align-left') 
+0

@Alnitak谢谢:) ...我不知道我在想什么 –

0
在他的回答

if($("#test").css('display') == 'block') { 
    // Remove and add properties here 
} 

由于佩卡到this SO question

您也可以使用此功能!

相关问题