.tab-g { border-bottom:0; height:36px; } .tab-g li { list-style:none; float:left; height:34px; margin-right:20px; color:#909090; line-height:34px; text-align:center; cursor:pointer; } .tab-g li.active-gn { color:#50B400; border-bottom:3px solid #50B400; } .bottom .products { height:476px; } .bottom .products .main-gn { display:none; } .bottom .products .main-gn.selected-gn { display:block; }
全在一个页面中,直接拷贝即可