前言

如你所见,你现在看见的博客的左下角就有一只看板娘。可爱吧~

这篇文章将帮助你为博客添加 live2d 看板娘。

正文

其实非常简单,在网页上加上如下这段 html 代码即可。

<link rel="stylesheet" type="text/css" href="https://bohanjun.github.io/live2d/waifu.css" />
<div class="waifu" id="waifu" style="z-index: 99999999;">
    <div class="waifu-tips"></div>
    <canvas id="live2d" width="280" height="250" class="live2d"></canvas>
</div>
<script src="https://bohanjun.github.io/live2d/live2d.js"></script>
<script src="https://bohanjun.github.io/live2d/waifu-tips.js"></script>
<script type="text/javascript">initModel()</script>

然后就好了,是不是非常简单!

小结

结个屁结,我只是随便水一篇文章好吗……

P.S:这次的 live2d 看板娘是博瀚君修改过的,去除了一言接口,优化了一些强迫症细节。

最后修改:2021 年 02 月 19 日 03 : 58 PM
如果觉得我的文章对你有用,请随意赞赏