如何在野生动物园中固定标头? 在PC上,它可以完美运行,而在iPhone上的野生动物园中,我无法解决此问题
html, body {
height: 100%;
margin: 0;
}
.wrapper {
height: 100%;
display: flex;
flex-direction: column;
}
.header, .footer {
background: silver;
}
.content {
flex: 1;
width: 100%;
overflow: auto;
background: pink;
<html>
<head>
<title>Prova</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0,
maximum-scale=1.0, user-scalable=no"/>
</head>
<body>
<div class="wrapper">
<div class="header">Header</div>
<div class="content">
<div style="height:1000px;">Content</div>
</div>
<div class="footer">Footer</div>
</div>
</body>
</html>
当前用户界面: