PhoneGap中文网
标题:
导航条永远置顶
[打印本页]
作者:
lin_xingyu
时间:
2013-12-1 16:23
标题:
导航条永远置顶
我在html5里面的写的代码,在电脑浏览器里面都可以实现导航条置顶,但是放到gap里面就不行。有没有什么其他的办法让导航条一直置顶?
下面是代码:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "
http://www.w3.org/TR/html4/loose.dtd
">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<style>
body{margin:0;padding:0;height:1500px;}
.top{width:100%;height:30px;background:#ff0000;position:fixed;top:0px; }
id{ left:100px; top:100px; position:absolute;}
</style>
</head>
<body>
<div class="top"></div>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
dksjfhakjsdh<br>
</body>
</html>
作者:
小雪
时间:
2013-12-2 04:25
路过,支持一下啦
作者:
爱哭的鱼
时间:
2013-12-2 09:20
不知该说些什么。。。。。。就是谢谢
作者:
admin
时间:
2013-12-6 21:01
自己写的代码吗 ? position:fixed; top:0px; 试试
作者:
ymhsky
时间:
2014-1-14 11:51
路过,帮顶
欢迎光临 PhoneGap中文网 (http://bbs.phonegap100.com/)
Powered by Discuz! X3.2