摘要: 简单展示PDF 1. 下载pdf.js插件 <script src='https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.6.172/pdf.min.js'></script> 2. 解析PDF文件渲染为canvas const pdfjsLib = wi 阅读全文
posted @ 2023-05-18 16:38 JS-Feng 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 方案一、 <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=375, user-scalable=no"> 方案二、 html { f 阅读全文
posted @ 2021-11-08 17:54 JS-Feng 阅读(59) 评论(0) 推荐(0) 编辑
摘要: index.html 中 <head></head>加入下面代码: <link rel="icon" href="data:image/ico;base64,aWNv"> 阅读全文
posted @ 2021-10-27 14:12 JS-Feng 阅读(393) 评论(0) 推荐(0) 编辑
摘要: /deep/ .el-radio__input.is-checked .el-radio__inner::after { content: ""; width: 8px; height: 5px; border: 2px solid white; border-top: transparent; b 阅读全文
posted @ 2021-10-26 16:35 JS-Feng 阅读(1095) 评论(0) 推荐(0) 编辑
摘要: 解决 电脑默认缩放比不是100%的情况 let zoom = window.devicePixelRatio; document.body.style.zoom = 1/zoom; /** * 获取浏览器缩放百分比 */ function getZoom() { var ratio = 0, scr 阅读全文
posted @ 2021-09-23 16:24 JS-Feng 阅读(997) 评论(0) 推荐(0) 编辑
摘要: function stopZoom() { const keyCodeMap = { // 91: true, // command 61: true, 107: true, // 数字键盘 + 109: true, // 数字键盘 - 173: true, // 火狐 - 号 187: true, 阅读全文
posted @ 2021-09-23 14:28 JS-Feng 阅读(220) 评论(0) 推荐(0) 编辑
摘要: video::-webkit-media-controls-fullscreen-button { display: none; } video::-webkit-media-controls-play-button {} video::-webkit-media-controls-timeline 阅读全文
posted @ 2021-07-15 16:20 JS-Feng 阅读(922) 评论(0) 推荐(0) 编辑
摘要: https://juejin.cn/post/6844903683411410951 阅读全文
posted @ 2021-07-01 17:49 JS-Feng 阅读(27) 评论(0) 推荐(0) 编辑
摘要: /* 滚动条 */ ::-webkit-scrollbar { width: 5px; height: 5px; background: transparent; border-radius: 5px; } /* 滚动条两端按钮 */ ::-webkit-scrollbar-button { wid 阅读全文
posted @ 2021-07-01 16:20 JS-Feng 阅读(712) 评论(0) 推荐(0) 编辑
摘要: 中文包:Chinese (Simplified) Language Pack for Visual Studio Code Beautify ESLint Git History GitLens — Git supercharged koroFileHeader language-stylus Lo 阅读全文
posted @ 2021-06-30 17:28 JS-Feng 阅读(55) 评论(0) 推荐(0) 编辑