Answer the question
In order to leave comments, you need to log in
How to solve fixed items issue in safari on iPhone?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=0" />
<title>Document</title>
<style type="text/css">
html, body {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
background-color: white;
}
.row {
height: 100%;
width: 3000px;
background-color: blue;
}
.bar {
width: 100%;
height: 50px;
position: fixed;
background-color: gray;
text-align: center;
}
</style>
</head>
<body>
<div class="bar">bar</div>
<div class="row"></div>
</body>
</html>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question