当前位置:网站首页>electron窗口背景透明无边框(可用于启动页面)
electron窗口背景透明无边框(可用于启动页面)
2022-06-27 22:20:00 【代码哈士奇】
main中注册窗口
窗口配置如下
constreadyConfig = {
width:500,
height:300,
frame:false,
transparent:true,
};
配合页面
如下是我之前用的,主要把背景搞透明
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<div style=" display: flex; justify-content: center; height: 200px; line-height: 200px; background-color: rgba(255, 255, 255, 0.014); " >
<p style="font-size: 45px">正在开启工具箱</p>
</div>
</body>
</html>
可以设置一个启动页面 主页面加载完成后 干掉加载页面
边栏推荐
- Alchemy (1): identify prototype, demo and MVP in project development
- Understand the basic structure of wechat applet project
- 剑指 Offer 61. 扑克牌中的顺子
- Code neatness -- function
- 内网IP和公网IP的区别及作用
- 796 div.2 C. managing history thinking
- Quickly master grep commands and regular expressions
- 1696D. Permutation graph thinking
- Squid代理服务器(缓存加速之Web缓存层)
- Scu| gait switching and target navigation of micro swimming robot through deep reinforcement learning
猜你喜欢
免费、好用、强大的开源笔记软件综合评测
云厂商为什么都在冲这个KPI?
MATLB|基于复杂网络的配电系统微电网优化配置
Matlb| optimal configuration of microgrid in distribution system based on complex network
NoSQL之Redis配置与优化
Modern programming language: rust
The limits of Technology (11): interesting programming
Summary of wuenda's machine learning course (14)_ Dimensionality reduction
[paper reading | deep reading] sdne:structural deep network embedding
技术的极限(11): 有趣的编程
随机推荐
Leetcode 720. 词典中最长的单词(为啥感觉这道题很难?)
剑指 Offer 65. 不用加减乘除做加法
Chenyun pytorch learning notes_ Build RESNET with 50 lines of code
现代编程语言:Rust (铁锈,一文掌握钢铁是怎样生锈的)
#795 Div.2 E. Number of Groups set *
Count prime [enumeration - > space for time]
云厂商为什么都在冲这个KPI?
MySQL enterprise parameter tuning practice sharing
Local visualization tool connects to redis of Alibaba cloud CentOS server
What are the ways to combine the points system with marketing activities
Customize MySQL connection pool
Eliminate gaps around El image images
吴恩达《机器学习》课程总结(13)_聚类
Software engineering job design (1): [personal project] implements a log view page
Flutter series: Transformers in flutter
用两个栈实现队列[两次先进后出便是先进先出]
Redis主从复制、哨兵模式、集群的概述与搭建
Leetcode 720. The longest word in the dictionary
翻译(5): 技术债务墻:一种让技术债务可见并可协商的方法
互联网的发展为产业的变革和转型提供了新的解决方案