首先下载插件 background
setting.json设置中使用如下代码:
"background.enabled": true, // 安装插件后是默认开启的,改为flase 背景将不生效
"background.useDefault": false,
"background.customImages": [ // 图片地址最多可以设置 3 张图片
"C:/Users/yao_zhiqiang/Desktop/background/shaonv.jpg"
],
"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
}
效果: