Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我注意到 YouTube 在他们的桌面网站上做了一项新功能,当加载新视频时,它会在页面顶部显示一个红色的加载栏,显示视频的加载状态。
我想做这样的事情,但要在我知道我可能必须使用 JavaScript / jQuery 的网站上加载新页面。
如果您可以查看该功能,如果有人可以帮助我使用 CSS 和 JavaScript 做类似的事情,我将不胜感激。
看起来并不难,JSFiddle 会很棒。
赖曼。
我不知道你有没有找到,但我找到了。
看看: http ://www.onextrapixel.com/2013/09/02/loadingbar-js-adding-a-youtube-like-loading-bar-to-your-website/
最好的祝福。