简体   繁体   English

用户向下滚动我的网页时,如何删除Chrome地址栏周围的边框

[英]How to remove the border around the address bar of chrome when the user scrolls down my webpage

I am trying to implement a view for my website where the address bar border get hidden when the user scrolls down my webpage. 我正在尝试为我的网站实现一个视图,当用户向下滚动我的网页时,地址栏边框将隐藏。 Is this possible? 这可能吗?

I initially tried hiding the address bar itself, but soon found out that the modern day browsers have removed this option due to security and phishing reasons. 我最初尝试隐藏地址栏本身,但很快发现现代浏览器由于安全性和网络钓鱼的原因而删除了此选项。 So, now I want to at least hide the border so that when the user scrolls down, the bar itself appears as if it is a part of the page and not detached. 因此,现在我至少要隐藏边框,以便当用户向下滚动时,条本身看起来好像是页面的一部分,而不是分离的。

Looking for an answer ASAP. 尽快寻找答案。 Thanks 谢谢

It's not possible. 这是不可能的。 Sorry but you can't do it, it's a feature of Google Chrome you can't do it by yourself. 抱歉,您无法执行此操作,这是Google Chrome浏览器的功能,您不能自己执行。

try this: 尝试这个:

var winFeature =
    'location=no,toolbar=no,menubar=no,scrollbars=yes,resizable=yes';
window.open('Result.html','null',winFeature);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM