h1{font-size:16px;}
.test{overflow:hidden;100%;margin:0;padding:0;list-style:none;}
.test li{float:left;100px;height:100px;margin:0 5px;border:1px solid #ddd;background-color:#eee;text-align:center;
-webkit-transition:background-color .5s ease-in;
-moz-transition:background-color .5s ease-in;
transition:background-color .5s ease-in;
}
.test li:nth-child(1):hover{background-color:#bbb;}
.test li:nth-child(2):hover{background-color:#999;}
.test li:nth-child(3):hover{background-color:#630;}
.test li:nth-child(4):hover{background-color:#090;}
.test li:nth-child(5):hover{background-color:#f00;}
请将鼠标移动到下面的矩形上:
- 背景色过渡
- 背景色过渡
- 背景色过渡
- 背景色过渡
- 背景色过渡
h1{font-size:16px;}
.test{overflow:hidden;100%;margin:0;