遍历对象数组时如何修改对象的css?这是我的尝试:
var buttons = $('#nav li');
for(button in buttons){
button.css("opacity","1");
}
但这给出了错误:
Uncaught TypeError: Object 0 has no method 'css'
(anonymous function)
k jquery-1.8.0.min.js:2
l.fireWith jquery-1.8.0.min.js:2
p.extend.ready jquery-1.8.0.min.js:2
D