点击按钮切换图片
以下是完整代码,直接就可以运行哦~
CSS代码:
<style>
* {
margin: 0;
padding: 0;
}
#box {
width: 500px;
height: 500px;
position: fixed;
left: 400px;
top: 100px;
}
ul li {
width: 150px;
list-style: none;
float: left;
text-align: center;
}
li.ac{