📅  最后修改于: 2022-03-11 14:48:00.046000             🧑  作者: Mango
//Set one style attribute
$('#element').css('display', 'block');
//Set multiple style attributes
$('#element').css({'display': 'block', 'background-color' : '#2ECC40'}); /* Multiple style *