首页 > 解决方案 > 如何让您的网站像 youtube 一样加载

问题描述

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

那么如何让您的网站像 youtube 一样加载。因为 youtube 的网站上没有这个东西在此处输入图像描述

标签: htmlbackend

解决方案


下载 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 是另一种选择。


推荐阅读