【问题标题】:How can you make your website load like youtube [duplicate]你怎么能让你的网站像youtube一样加载[重复]
【发布时间】:2021-02-27 08:25:51
【问题描述】:

所以我的问题是如何让您的网站像 Youtube 和其他著名网站一样加载 因为我的网站以传统方式加载。加载网站的传统方式是在您网站的 favicon 周围有一个小东西,例如

那么,如何让您的网站像 youtube 一样加载。因为 youtube 的网站上没有相关的图标,否则当你点击视频时,顶部的这个东西

【问题讨论】:

    标签: html backend


    【解决方案1】:

    下载 topbar.js

    <script src="topbar.js"></script>
    

    然后你可以自定义相同的

    topbar.config({
      autoRun      : true,
      barThickness : 4,
      barColors    : {
          '0'      : 'rgba(26,  188, 156, .9)',
          '.25'    : 'rgba(52,  152, 219, .9)',
          '.50'    : 'rgba(241, 196, 15,  .9)',
          '.75'    : 'rgba(230, 126, 34,  .9)',
          '1.0'    : 'rgba(211, 84,  0,   .9)'
      },
      shadowBlur   : 10,
      shadowColor  : 'rgba(0,   0,   0,   .6)'
    })
    

    显示条形

    topbar.show();
    

    nanobar.js 是另一种选择。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-09-12
      • 2010-09-08
      • 2020-04-03
      • 2011-07-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多