摘要: 1、阿里云视频播放器 功能展示 https://player.alicdn.com/aliplayer/presentation/index.html?type=cover 配置说明 https://help.aliyun.com/document_detail/125572.htm?spm=a2c 阅读全文
posted @ 2022-05-18 15:39 漫天风沙 阅读(891) 评论(0) 推荐(0) 编辑
摘要: 1、html css <div class="pptyy mld"> <span><i class="icon icon-fold"></i></span> <div style="background:#EE7800;height: 120px;">动画更改高度的div</div> </div> 阅读全文
posted @ 2022-03-28 13:56 漫天风沙 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 1、下载链接 cropper : https://github.com/fengyuanchen/cropper jQuery版 :https://github.com/fengyuanchen/jquery-cropper 2、配置 $('.cover').cropper({ aspectRati 阅读全文
posted @ 2021-10-15 16:22 漫天风沙 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 在日常应用场景中,可能会遇到这么一个情况,需要判断用户是否完整的观看完了一部视频,在这个场景中,和视频相关的事件大体涉及到几个部分,获取视频长度,视频开始播放,暂停播放和播放结束,下面来看下如何通过JavaScript来监听获取视频的这几种状态。 html页面视频标签大体如下: 视频加载后获取视频的 阅读全文
posted @ 2021-09-13 17:22 漫天风沙 阅读(571) 评论(0) 推荐(0) 编辑
摘要: 1、小程序常用标签 view(视图容器)、rich-text(富文本)、swiper(滑块视图容器)、icon(图标)、text(文字)、progress(进度条)、button(按钮)、form(表单)、input(输入框)、checkbox(多项选择器)、radio(单项选择器)、picker( 阅读全文
posted @ 2021-05-27 11:53 漫天风沙 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1、编辑器配置 var ue = UE.getEditor('editor-container', { toolbars: [ ['undo', 'redo','|','bold','italic','underline','strikethrough','forecolor','|','lineh 阅读全文
posted @ 2021-04-13 15:11 漫天风沙 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1、先安装node 2、进入到项目文件夹根目录 3、在项目根目录执行命令npm init,安装npm包,然后一直确定 4、然后再执行命令 npm install --production 5、微信开发工具》工具》构建npm,若有提示 “没有找到可以构建的NPM包”,检查下npm 模块有没有打钩上 如 阅读全文
posted @ 2020-07-17 17:45 漫天风沙 阅读(1131) 评论(0) 推荐(0) 编辑
摘要: 给带有圆角的元素设置transform: rotate(0deg)即可解决该问题。 阅读全文
posted @ 2020-05-29 18:59 漫天风沙 阅读(419) 评论(0) 推荐(0) 编辑
摘要: // 取消事件的默认动作 var cancelDefaultAction=function(e){e.preventDefault();}; // 弹框显示时 document.body.style.overflow = "hidden"; document.addEventListener("to 阅读全文
posted @ 2020-05-29 17:00 漫天风沙 阅读(194) 评论(0) 推荐(0) 编辑
摘要: chrome浏览器hover时文字抖动bug 今天发现一个奇怪的bug,chrome浏览器里面 当父标签定位为fixed时,hover里面子标签时,文本会发生抖动,百思不得其解,经过多方查证,发现解决办法 -webkit-transform: translateZ(0); transform: tr 阅读全文
posted @ 2020-03-30 16:44 漫天风沙 阅读(589) 评论(0) 推荐(0) 编辑