css固定定位
作者:互联网
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>固定定位</title>
<style>
body{
height: 1000px;
}
div:nth-of-type(1){
width: 30px;
height: 30px;
position: absolute;
background: #696ac4;
line-height: 30px;
display: block;
text-align: center;
right: 0;
bottom: 0;
}
div:nth-of-type(2){
width: 20px;
height: 20px;
position: fixed;
background: #fc099b;
right: 0;
bottom: 0;
}
</style>
</head>
<body>
<div>怪!</div>
<div>琪</div>
</body>
</html>
标签:定位,right,bottom,height,width,固定,type,30px,css 来源: https://www.cnblogs.com/shuqiqi/p/16537697.html