*{ margin:0; padding:0;} .trans { /*transition*/ -webkit-transition: 0.2s ease; -moz-transition: 0.2s ease; -ms-transition: 0.2s ease; -o-transition: 0.2s ease; transition: 0.2s ease; } .bg{ width:1000px; height:40px; overflow:hidden; position:relative;} .bg ul{ width:120px; height:80px; overflow:hidden; font-family:微软雅黑; position:relative; left:0; top:0; float:left;} .bg ul li{ width:120px; height:40px;text-align:center; line-height:40px} .bg .first{ background-color:#000; color:#FFF;} .bg .last{ background-color:#903; color:#FFF;} .bg ul:hover{ top:-40px; cursor:pointer;}