网页添加Live2D看板娘简易教程

JS代码

<script type="text/javascript" charset="utf-8"  src="https://files.cnblogs.com/files/liuzhou1/L2Dwidget.0.min.js"></script>
<script type="text/javascript" charset="utf-8"  src="https://files.cnblogs.com/files/liuzhou1/L2Dwidget.min.js"></script>
<script type="text/javascript">
    L2Dwidget.init({"display": {
        "superSample": 2,
        "width": 200,
        "height": 400,
             "position": "right",
                 "hOffset": 0,
        "vOffset": 0
          }
     });
</script>

CSS 代码

#live2dcanvas {
    border: 0 !important;
}

原文链接: https://www.cnblogs.com/liuzhou1/p/10813828.html

你可能感兴趣的:(前端,html,javascript)