随笔分类 -  不同平台/浏览器的差异

如安卓端,苹果端,IE,微信端等平台或者浏览器之间的差异
摘要:移动端项目配置:在index.html里添加以下代码即可 <script> let sUserAgent = navigator.userAgent.toLowerCase(); let isIpad = sUserAgent.match(/ipad/i) == "ipad"; let isIpho 阅读全文
posted @ 2023-09-04 11:05 huihuihero 阅读(123) 评论(0) 推荐(0) 编辑
摘要:###直播协议HLS和RTMP 直播技术一般有两种协议方式,分别是HLS和RTMP,两种协议分别的解释: HLS ,是苹果公司实现的基于 HTTP 的流媒体传输协议,全称 HTTP Live Streaming,可支持流媒体的直播和点播,主要应用在 iOS 系统,为 iOS 设备(如 iPhone、 阅读全文
posted @ 2023-07-24 16:13 huihuihero 阅读(896) 评论(0) 推荐(0) 编辑
摘要:DevTools failed to load source map: Could not load content for webpack:///node_modules/element-plus/es/index.mjs.map: Fetch through target failed: Uns 阅读全文
posted @ 2023-04-20 10:22 huihuihero 阅读(558) 评论(0) 推荐(0) 编辑
摘要:###方法 /*** 判断mac系统(含iphone手机) ***/ let isMac = /macintosh|mac os x/i.test(navigator.userAgent); /*** 判断windows系统 ***/ let isWindows = /windows|win32/i 阅读全文
posted @ 2021-08-26 10:23 huihuihero 阅读(396) 评论(0) 推荐(0) 编辑
摘要:在安卓端,中文的行高和英文的行高不同。这导致了一些文字渲染出来后看起来不是很友好。 解决办法: 在开发app时,有需要的话,在有文字的地方设置统一的line-height 阅读全文
posted @ 2020-06-09 16:19 huihuihero 阅读(525) 评论(0) 推荐(0) 编辑
摘要:1、IE浏览器打开网站后显示空白,并报错:Error in created hook: "ReferenceError: “Promise”未定义" 2、接口数据请求失败 1可能是因为IE不识别es6的promise,解决方法如上。 2也可能是因为简易接口请求格式IE浏览器不识别。换做标准的格式即可 阅读全文
posted @ 2020-01-16 09:43 huihuihero 阅读(2702) 评论(0) 推荐(1) 编辑
摘要:###推荐这种方式 https://www.cnblogs.com/huihuihero/p/13024701.html ####ios微信内置浏览器默认是白色背景底色;而安卓机微信内置浏览器默认是灰色背景底色。底色不同导致h5页面在不同机型的微信浏览器内打开,显示效果不同。如何兼容? 推荐上面链接 阅读全文
posted @ 2019-12-18 10:11 huihuihero 阅读(953) 评论(0) 推荐(0) 编辑
摘要:####滚动条距离顶部的距离 let ele=document.getElementById("demo") console.log(ele.scrollTop) ####滚动条距离底部的距离 let ele=document.getElementById("demo") console.log(e 阅读全文
posted @ 2019-10-09 12:10 huihuihero 阅读(3680) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示