* { margin:0; padding:0; list-style:none; font-family:"微软雅黑"; } .wrap { width:800px; margin:20px auto; } .wrap ul li { float:left; width:102px; height:102px; margin-right:10px; margin-bottom:20px; line-height:102px; text-align:center; color:#fff; border-radius:8px; background:#C8E29D; cursor:pointer; } .wrap ul li:last-child { margin-right:0; } .wrap li.act { font-size:40px; background:#F2F299; } .sub { width:100px; height:40px; margin:40px 0; color:#fff; border:none; background:#3DD2CC; } label { display:block; clear:both; }
1:调用jquery-1.8.3.min.js
2:代码里面写有注释