_ZET_, вот пример с локальным хранилищем...
<!DOCTYPE html>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=windows-1251' />
<script src='http://code.jquery.com/jquery-latest.js'></script>
<!--
<script src="https://code.angularjs.org/1.3.9/angular.min.js"></script>
<script src="https://code.angularjs.org/1.3.9/angular-route.js"></script>
<link rel='stylesheet type=text/css href=tmp.css' />
<link rel="stylesheet/less" type="text/css" href="style.less">
<script src="http://cdnjs.cloudflare.com/ajax/libs/less.js/2.5.0/less.min.js"></script>
-->
<style type='text/css'>
.all{
height: 50px;
width: 70px;
background: #b17902;
}
</style>
<script type='text/javascript'>
$(function(){
$(".all").click(function(){
var color = "#009900";
var height = "60px";
$(this).css("background-color" , color);
$(this).css("height" , height);
var arrCoHe = color+ "," +height;
localStorage.setItem("all", arrCoHe);
});
var al=localStorage.getItem("all");
if(al) {
var arrCoHe = al.split(",");
$('.all').css({
'background': arrCoHe[0],
'height': arrCoHe[1]
})
}
});
</script>
</head>
<body>
<div class="all"></div>
</body>
</html>