如何在vscode 背景配置一个动态小女孩

2022-06-22 15:07:37 浏览数 (3)

代码语言:javascript复制
D:Microsoft VS Coderesourcesappoutvscodeelectron-browserworkbench
代码语言:javascript复制
<!-- Copyright (C) Microsoft Corporation. All rights reserved. -->
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src 'self' https: data: blob: vscode-remote-resource:; media-src 'none'; frame-src 'self' vscode-webview: https://*.vscode-webview-test.com; object-src 'self'; script-src * 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; connect-src 'self' https:; font-src 'self' https: vscode-remote-resource:;">
    </head>
    <style type="text/css">
        #live2dcanvas {border: 0 !important;}
    </style>
    <body aria-label="">
        <div id="live2d-widget"><canvas id="live2dcanvas" width="100" height="200" style="position: fixed;width:100px;height:200;opacity: 0.5;right: 0px;bottom: -20px;z-index: 99999;pointer-events: none;border:0;"></canvas></div>
    </body>

    <!-- Init Bootstrap Helpers -->
    <script src="../../../../bootstrap.js"></script>
    <script src="../../../../vs/loader.js"></script>
    <script src="../../../../bootstrap-window.js"></script>

    <!-- Startup via workbench.js -->
    <script src="workbench.js"></script>

    <script type="text/javascript" charset="utf-8" src="https://cdn.jsdelivr.net/npm/live2d-widget@3.0.4/lib/L2Dwidget.0.min.js"></script>
    <script type="text/javascript"  src="https://cdn.jsdelivr.net/npm/live2d-widget@3.0.4/lib/L2Dwidget.min.js?_=1557308476616"></script>
    <script type="text/javascript">
    // L2Dwidget.init();
      L2Dwidget.init({"display": {
        "superSample": 2,
        "width": 100,
        "height": 200,
        "position": "right",
        "hOffset": 0,
        "vOffset": 0
        }
     });
    </script>
</html>

更多内容请见原文,原文转载自:https://blog.csdn.net/weixin_44519496/article/details/119906270

0 人点赞