1.确保申请JS权限已通过
2.进入博客后台文件系统
https://i.cnblogs.com/Files.aspx
需要上传的文件
waifu.css waifu1.css live2d.min.js waifu-tips.js flat-ui.min.css
将下载好的看板娘样式文件进行上传
如何实在懒得找可以输入我的文件地址保存我的样式代码
将如下代码放在博客侧边栏公告那个框里(其实那三个框都可以)
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Live2D</title> <link rel="stylesheet" type="text/css" href="https://blog-static.cnblogs.com/files/reasonzzy/waifu1.css"/> <script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script> </head> <body> <link rel="stylesheet" type="text/css" href="https://blog-static.cnblogs.com/files/reasonzzy/waifu1.css"> <div class="waifu" id="waifu"> <div class="waifu-tips" style="opacity: 1;"></div> <canvas id="live2d" width="280" height="250" class="live2d"></canvas> <div class="waifu-tool"> <span class="fui-home"></span> <span class="fui-chat"></span> <span class="fui-eye"></span> <span class="fui-user"></span> <span class="fui-photo"></span> <span class="fui-info-circle"></span> <span class="fui-cross"></span> </div> </div> <script src="https://blog-static.cnblogs.com/files/reasonzzy/live2d.min.js"></script> <script src="https://blog-static.cnblogs.com/files/reasonzzy/waifu-tips.js"></script> <script type="text/javascript">initModel()</script> </body> </html> <link rel="stylesheet" type="text/css" href="https://blog-static.cnblogs.com/files/reasonzzy/flat-ui.min.css"/>
waifu.css 看板娘位置在左边waifu1.css 看板娘位置在右边
原文地址:https://www.cnblogs.com/reasonzzy/p/11507316.html
时间: 2024-10-11 09:52:27