相关疑难解决方法(0)

固定位置不适用于移动浏览器

如何在移动浏览器(ios和android)中修复元素位置?元素仍然使用以下代码滚动ios <5和android <4

<html>
 <head>
<style>
     .fixed{
      position:fixed;
      top:0;
      left:0;
    }
</style>
</head>
<body>
     <div class="fixed">
     Hi I m Position Fixed 
     </div>
    <div>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample text<br/>
       sample …
Run Code Online (Sandbox Code Playgroud)

html javascript css android position

20
推荐指数
1
解决办法
5万
查看次数

标签 统计

android ×1

css ×1

html ×1

javascript ×1

position ×1