会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
JS-Feng
博客园
首页
新随笔
联系
订阅
管理
1
2
3
4
5
···
7
下一页
2023年5月18日
web页面展示PDF文件
摘要: 简单展示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
阅读(517)
评论(0)
推荐(0)
2021年11月8日
页面适配
摘要: 方案一、 <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
阅读(65)
评论(0)
推荐(0)
2021年10月27日
禁止浏览器加载favicon.ico文件
摘要: index.html 中 <head></head>加入下面代码: <link rel="icon" href="data:image/ico;base64,aWNv">
阅读全文
posted @ 2021-10-27 14:12 JS-Feng
阅读(493)
评论(0)
推荐(0)
2021年10月26日
element ui 单选 修改为 多选的样式(小√)
摘要: /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
阅读(1214)
评论(0)
推荐(0)
2021年9月23日
获取和设置浏览器缩放比
摘要: 解决 电脑默认缩放比不是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
阅读(1194)
评论(0)
推荐(0)
PC禁止浏览器缩放
摘要: 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
阅读(238)
评论(0)
推荐(0)
2021年7月15日
H5 Video控件设置样式
摘要: 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
阅读(964)
评论(0)
推荐(0)
2021年7月1日
常用插件收藏
摘要: https://juejin.cn/post/6844903683411410951
阅读全文
posted @ 2021-07-01 17:49 JS-Feng
阅读(30)
评论(0)
推荐(0)
css 设置滚动条样式
摘要: /* 滚动条 */ ::-webkit-scrollbar { width: 5px; height: 5px; background: transparent; border-radius: 5px; } /* 滚动条两端按钮 */ ::-webkit-scrollbar-button { wid
阅读全文
posted @ 2021-07-01 16:20 JS-Feng
阅读(720)
评论(0)
推荐(0)
2021年6月30日
vscode 常用插件
摘要: 中文包: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
阅读(58)
评论(0)
推荐(0)
1
2
3
4
5
···
7
下一页
公告