时间:2021-07-01 10:21:17 帮助过:3人阅读
$('#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 添加样式属性的优先级别的详细内容,更多请关注Gxl网其它相关文章!