2022年8月17日
摘要: 1,把自定义字体包导入项目 2,font.css文件下 1 字体名 2 字体路径 3,4 字体样式(可省略) 3,App。vue文件中 修改样式中的font-family属性 阅读全文
posted @ 2022-08-17 14:48 阿术阿术 阅读(1061) 评论(0) 推荐(0)
摘要: async function createWindow() { // 注入小段css文件 // mainWindow.webContents.insertCSS(" body,html { -webkit-app-region: drag !important;}") // body,html { 阅读全文
posted @ 2022-08-17 14:43 阿术阿术 阅读(304) 评论(0) 推荐(0)
摘要: 1 async function createWindow() { 2 // 注入小段css文件 3 // mainWindow.webContents.insertCSS(" body,html { -webkit-app-region: drag !important;}") 4 // body 阅读全文
posted @ 2022-08-17 14:36 阿术阿术 阅读(1608) 评论(0) 推荐(0)
摘要: 1 readLocalFile(fileUrl) { 2 let xhr = null 3 if (window.XMLHttpRequest) { 4 xhr = new XMLHttpRequest() 5 } else { 6 // eslint-disable-next-line 7 xhr 阅读全文
posted @ 2022-08-17 14:29 阿术阿术 阅读(521) 评论(0) 推荐(0)