position:fixed 属性在iphone 中不起作用
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>模拟position:fixed</title>
</head>
<style>
* { padding:; margin:;}
body { height:%; overflow:hidden; font-size:14px; line-height:; position:relative;}
html { height:%; overflow:hidden;}
.fixed { position:absolute; top:10px; left:10px; width:200px; height:350px; background:#fc0; border:1px solid #f60;}
.wrapper { height:%; overflow:auto;}
.body { padding-top:10px; margin-left:232px;}
</style>
<body>
<div class="fixed">左边无论怎么滚动这个窗口它都不会动的</div>
<div class="wrapper">
<div class="body">
<li><a href="/soft/1843.shtml" target="_blank">显示内容1显示内容1显示内容1显示内容1</a></li>
<li><a href="/soft/1986.shtml" target="_blank">显示内容2显示内容2显示内容2</a></li>
<li><a href="/soft/4374.shtml" target="_blank">显示内容3显示内容3显示内容3</a></li>
<li><a href="/soft/1060.shtml" target="_blank">显示内容4显示内容4显示内容4</a></li>
<li><a href="/soft/4609.shtml" target="_blank">显示内容5显示内容5显示内容5</a></li>
<li><a href="/soft/1078.shtml" target="_blank">显示内容6显示内容6</a></li>
<li><a href="/soft/2030.shtml" target="_blank">显示内容7显示内容7显示内容7</a></li>
<li><a href="/soft/3119.shtml" target="_blank">显示内容8显示内容8显示内容8</a></li>
<li><a href="/soft/2927.shtml" target="_blank">显示内容9显示内容9显示内容</a></li>
<li><a href="/soft/2460.shtml" target="_blank">显示内容10显示内容10</a></li>
<li><a href="/soft/5654.shtml" target="_blank">显示内容11显示内容11</a></li>
<li><a href="/soft/3353.shtml" target="_blank">显示内容12显示内容12</a></li>
<li><a href="/soft/1852.shtml" target="_blank">显示内容13显示内容13</a></li>
<li><a href="/soft/1843.shtml" target="_blank">显示内容14显示内容14</a></li>
<li><a href="/soft/1986.shtml" target="_blank">显示内容15显示内容15</a></li>
<li><a href="/soft/4374.shtml" target="_blank">显示内容16显示内容16</a></li>
<li><a href="/soft/1060.shtml" target="_blank">显示内容17显示内容17</a></li>
<li><a href="/soft/4609.shtml" target="_blank">显示内容18显示内容18</a></li>
<li><a href="/soft/1078.shtml" target="_blank">显示内容19显示内容19</a></li>
<li><a href="/soft/2030.shtml" target="_blank">显示内容20显示内容20</a></li>
<li><a href="/soft/3119.shtml" target="_blank">显示内容21显示内容21</a></li>
<li><a href="/soft/2927.shtml" target="_blank">显示内容22显示内容22</a></li>
</div>
</div>
<div>脚本之家 http://www.jb51.net/</div>
</body>
</html>
css: absolute 模拟 fixed 效果
position:fixed 属性在iphone 中不起作用的更多相关文章
- 元素设置position:fixed属性后IE下宽度无法100%延伸
元素设置position:fixed属性后IE下宽度无法100%延伸 IE bug 出现条件: 1.div1设置position:fixed属性,并且想要width:100%的效果. 2.div2(下 ...
- 解决IE6不支持position:fixed属性
最近在优化网站浮动广告时候遇见了IE6不支持position:fixed属性.上网收集了一下解决方案 比较好的方案就是利用css表达式进行解决 补充:CSS Expression (CSS 表达式), ...
- 在IOS11中position:fixed弹出框中的input出现光标错位的问题
问题出现的背景: 在IOS11中position:fixed弹出框中的input出现光标错位的问题 解决方案 一.设计交互方面最好不要让弹窗中出现input输入框: 二.前端处理此兼容性的方案思路: ...
- IOS系统不兼容position: fixed;属性的解决方案
position: fixed;属性在IOS系统手机上会有很明显的抖动,解决方式: 只需要在中间部分外层div添加css样式position:fixed;top:50px; bottom:50px;o ...
- 父节点使用css的transform: translate(0, 0)时position:fixed在chrome浏览器中无效
今天在做移动端的页面,无意间发现了一个Chrome浏览器下的一个bug,在使用CSS3的transform: translate(0, 0)属性对节点A进行位置转化,此时A节点下面有一个字节点B,节点 ...
- 小技巧css解决移动端ios不兼容position:fixed属性,无需插件
移动端开发仿app头部底部固定设置position:fixed,android2.2以上已经实现.但是在ios8以下系统,当小键盘激活时,都会出现位置浮动问题.如图: 如何解决: 查阅资料之后想到一下 ...
- IOS中position:fixed弹出框中的input出现光标错位的问题
解决方案是 在弹框出现的时候给body添加fixed <style type="text/css"> body{ position: fixed; width: 100 ...
- IE6不支持position:fixed属性
_position:absolute; _bottom:auto; _top:expression(eval(document.documentElement.scrollTop+document.d ...
- iphone下元素放在了一个position: fixed的div中无法点击
网上的说法是这样的: iphone的浏览器有这么一个bug, 当你使用锚定或滚动页面后, 你会发现某些东西不能点击了! 如果你的这个“东西”放在了一个position: fixed的div中, 那么你 ...
随机推荐
- Multiple Contexts have a path of 错误
1.问题描述 在eclipse里面启动tomcat的时候,看到报错,multiple contexts have a path.tomcat启动失败 2.解决办法 删除tomcat,重新加载部署tom ...
- python 列表生成式
r = [x*x for x in range(10)] r list类型
- c++/java/python priority_que实现最大堆和最小堆
#include<iostream>#include<vector>#include<math.h>#include<string>#include&l ...
- 线段树 poj 3667
1-n线段 m个操作 1 a 是否可找到连续a个空位子 有输出最左边(然后使这一段被占)没有0 2 a ,b a~b区间变成未使用 #include<stdio.h> #include& ...
- [webpack] webpack-dev-server介绍及配置
webpack-dev-server是webpack官方提供的一个小型Express服务器.使用它可以为webpack打包生成的资源文件提供web服务.webpack-dev-server官方文档 w ...
- 江太公:javascript count(a)(b)(c)(d)运行过程思考
昨天,我弟抛给我一个js的题,使用类似标题那样的调用方法计算a*b*c*d以致无穷的实现方法.思考了半天,终于理清了它的运行过程,记录于下: 函数体: <!DOCTYPE html> &l ...
- Thinking in java学习笔记之LinkedList 与Stack
- BZOJ 1086: [SCOI2005]王室联邦
1086: [SCOI2005]王室联邦 Time Limit: 10 Sec Memory Limit: 162 MBSec Special JudgeSubmit: 1399 Solved: ...
- SQL Injection bypass WAF
tips: 利用的注射点: 支持Union 可报错 支持多行执行.可执行系统命令.可HTTP Request等额外有利条件 若非以上类型,则可能需要暴力猜解.猜解时,可能会遇到一些限制.攻击者要做的, ...
- BootStrap的一个标准框架的内容解释——来源于bootstrap官网
<!DOCTYPE html><!--HTML5的定义--><html lang="zh-cn"> <head> <meta ...