今天七夕节,大家都给女朋友准备的什么礼物?🎁
图片切换的代码如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
*{
margin:0;padding:0}
#container{
width:790px;
height:340px;
margin:50px auto;
overflow: hidden;
position: relative;
}
ul,ol{
list-style: none;
}
ul li{
float:left;
width:790px;
height: 340px;
}
#container div{
width:30px;
height: 60px;
background: #CCC;
opacity: 0.5;
line-height: 60px;
position: absolute;
top:140px;
color:#fff;
font-size: 30px;
text-align: center;
display: none;
}
#left{
left:0px;