!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<!--css样式表-->
<style type="text/css">
*{
margin:0;
padding:0;
position:relative;
}
/*div盒子*/
#div1{
position: absolute;
left: 50%;
top:100px;
width:400px;
height: 300px;
}
/*四个按钮 相对于父标签定位*/
/*相同的css属性写在button中*/
button{
position: absolute;
width: 30px;
height: 30px;
border-radius: 30px;
bottom: -130px;
border:0;
padding:0;
background-color: lightgray;
cursor: pointer;
}
/*不同的属性,分开写*/
#b1{
position: absolute;
left:50%;
}
#b2{
position: absolute;
left:60%;
}
#b3{
position: absolute;
left:70%;
}
#b4{
position: absolute;
left:80%;
}
</style>
</head>
&l
js广告轮播
最新推荐文章于 2024-06-17 15:29:34 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)