摘要:
简单展示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 阅读全文
摘要:
方案一、 <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=375, user-scalable=no"> 方案二、 html { f 阅读全文
摘要:
index.html 中 <head></head>加入下面代码: <link rel="icon" href="data:image/ico;base64,aWNv"> 阅读全文
摘要:
/deep/ .el-radio__input.is-checked .el-radio__inner::after { content: ""; width: 8px; height: 5px; border: 2px solid white; border-top: transparent; b 阅读全文
摘要:
解决 电脑默认缩放比不是100%的情况 let zoom = window.devicePixelRatio; document.body.style.zoom = 1/zoom; /** * 获取浏览器缩放百分比 */ function getZoom() { var ratio = 0, scr 阅读全文
摘要:
function stopZoom() { const keyCodeMap = { // 91: true, // command 61: true, 107: true, // 数字键盘 + 109: true, // 数字键盘 - 173: true, // 火狐 - 号 187: true, 阅读全文
摘要:
video::-webkit-media-controls-fullscreen-button { display: none; } video::-webkit-media-controls-play-button {} video::-webkit-media-controls-timeline 阅读全文
摘要:
https://juejin.cn/post/6844903683411410951 阅读全文
摘要:
/* 滚动条 */ ::-webkit-scrollbar { width: 5px; height: 5px; background: transparent; border-radius: 5px; } /* 滚动条两端按钮 */ ::-webkit-scrollbar-button { wid 阅读全文
摘要:
中文包:Chinese (Simplified) Language Pack for Visual Studio Code Beautify ESLint Git History GitLens — Git supercharged koroFileHeader language-stylus Lo 阅读全文