$('#five .a') .css({ color:'blue', border:'2px solid green', background:'blue' });
$('#five .a') .addClass('funny');
<style> .funny{ font-size: 21px; background-color: gray ; padding: 10px; color: yellow ; } </style> <div id="five"> <div class="a">A</div> </div>
以上就是jQuery 添加样式属性的优先级别的详细内容,更多请关注php中文网其它相关文章!
已抢67112个
抢已抢39963个
抢已抢22271个
抢已抢2871个
抢已抢3950个
抢已抢19516个
抢