Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
单击元素时,我正在对 css 属性进行简单设置。然后我进行页面刷新,css设置消失了。如何使 css 设置棒?
Use cookie for this
$(function(){ var cookieval = $.cookie('cookie-key'); if (cookieval === 'something'){ //here restore style } });