如何使用JavaScript在Android的Google Chrome浏览器中获取固定的地址栏 [英] How can I get a fixed address-bar in Google Chrome for Android with javascript
问题描述
http://s7.picofile.com/file/8388260676/photo.jpg
当我单击"No. 1"时,页面显示为Nav-Mobile(No.2); 但是当我在"3号"上进行上/下触摸/移动"时, 地址栏(第4号)在Google Chrome浏览器(Android手机)中被禁用. 加载地址在Google Chrome浏览器中是固定的. (例如网站:Alibaba.com) 我希望地址栏6不被移动, 当我在5号中上下时 我在CSS中添加了以下代码,但这是行不通的.
When I click "No. 1", The page shows like a Nav-Mobile (No. 2); But when I go "up/down-touch/move" on the "No. 3", Address-bar (No. 4) is disabled in Google Chrome (Android Phone). The load address is fixed in Google Chrome. (Like Website: Alibaba.com) I want the address bar No. 6 to not be moved, When I go up and down in No. 5. I added the following code in CSS, But it doesn't work.
position:fixed;
width: 100%;
height:100%
float:left;
如何使用javascript在Android的Google Chrome浏览器中获得固定的地址栏?
How can I get a fixed address-bar in Google Chrome for Android with javascript?
推荐答案
在下面尝试以下代码:
<style type="text/css">
html, body {margin: 0; height: 100%; overflow: hidden}
</style>
这篇关于如何使用JavaScript在Android的Google Chrome浏览器中获取固定的地址栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!