可以使用插件pace.js来实现,代码如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum=1.0,minimum=1.0,user-scalable=0" />
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/pace-theme-barber-shop.css">
<script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/pace.js"></script>
<style>
</style>
</head>
<body>
<iframe id="myinframe" src="//www.bfw.wiki">
</iframe>
</body>
</html>
网友回复