当前位置:网站首页>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>
可以设置一个启动页面 主页面加载完成后 干掉加载页面

边栏推荐
- Efficient supplier management in supply chain
- #796 Div.2 F. Sanae and Giant Robot set *
- SQL reported an unusual error, which confused the new interns
- 证券注册账户安全吗,会有风险吗?
- request对象、response对象、session对象
- Local visualization tool connects to redis of Alibaba cloud CentOS server
- 795 div.2 D. Max GEQ sum monotone stack
- Leetcode 720. 词典中最长的单词(为啥感觉这道题很难?)
- 数据仓库入门介绍
- [读书摘要] 学校的英文阅读教学错在哪里?--经验主义和认知科学的PK
猜你喜欢
![Count prime [enumeration - > space for time]](/img/11/c52e1dfce8e35307c848d12ccc6454.png)
Count prime [enumeration - > space for time]

Alchemy (1): identify prototype, demo and MVP in project development

Modern programming languages: zig

Technical debt wall: a way to make technical debt visible and negotiable

logging日志的使用

Introduction to data warehouse

Matlb| optimal configuration of microgrid in distribution system based on complex network

NoSQL之Redis配置与优化
![[idea] idea formatting code skills](/img/06/38079517e901bc48dc4ca0f8cc63fe.jpg)
[idea] idea formatting code skills

MATLB|基于复杂网络的配电系统微电网优化配置
随机推荐
炼金术(4): 程序员的心智模型
互联网的发展为产业的变革和转型提供了新的解决方案
股市小白在网上股票开户安全吗?
request对象、response对象、session对象
Mongodb- install a mongodb database locally on the windows computer
吴恩达《机器学习》课程总结(13)_聚类
How to use raspberry pie (and all kinds of pies)
Quickly master grep commands and regular expressions
Thread pool implementation: semaphores can also be understood as small waiting queues
internship:业务流程初识
Promise是什么
Recyclerview implements grouping effects in a variety of ways
RNA SEQ introduction practice (I): upstream data download, format conversion and quality control cleaning
翻译(5): 技术债务墻:一种让技术债务可见并可协商的方法
快速掌握grep命令及正则表达式
供应链高效管理供应商
The limits of Technology (11): interesting programming
NoSQL之Redis配置与优化
投资场内ETF基金是靠谱吗,场内ETF基金安全吗
翻译(4): 文本自动完成的匹配规则