<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
* {
padding: 0;
margin: 0;
}
.box {
text-align: center;
position: fixed;
top: 50px;
left: 50px;
right: 50px;
bottom: 50px;
overflow: auto;
}
.content {
background-color: yellow;
overflow: auto;
}
.footer {
width: 100%;
height: 50px;
background-color: blue;
position: fixed;
left: 0;
bottom: 0;
}
</style>
</head>
<body&
让div固定于屏幕底部
最新推荐文章于 2024-03-26 14:40:30 发布
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-...
摘要由CSDN通过智能技术生成