<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>四角定位</title>
<style>
div{
width: 100px;
height: 100px;
background: red;
position: absolute;
}
#box1{
top: 0;
left: 0;
}
#box2{
top: 0;
right: 0;
}
#box3{
bottom: 0;
left: 0;
}
#box4{
bottom: 0;
right: 0;
}
</style>
</head>
<body>
<div id="box1"></div>
<div id="box2"></div>
<div id="box3"></div>
<div id="box4"></div>
</body>
</html>
014四角定位
最新推荐文章于 2023-01-17 13:58:19 发布