vc code 透明背景图片配置

首先上一下效果图:

 

现在来说一下详细步骤:

一、先安装一个background插件

二、然后更改配置,设置自己本地的背景图片。
文件=》首选项=》设置

{
    "background.enabled": true,
        "background.useDefault": false,
        "background.customImages": [
            "file:///D:/develop/NEM1_20170909_C0321984285_A725525.png"//对应本地的背景图片地址
        ],
        "background.style": {
            "content": "''",
            "pointer-events": "none",
            "position": "absolute",
            "z-index": "99999",
            "width": "100%",
            "height": "100%",
            "background-position": "center",
            "background-repeat": "no-repeat",
            "background-size": "100%,100%",
            "opacity": 0.1
            
        }
}
这样就大功告成啦。。。

 

posted @ 2018-08-02 15:30  鹏兹  阅读(387)  评论(0编辑  收藏  举报