前言
这篇文章将帮助你为博客添加 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>然后就好了,是不是非常简单!