随笔分类 - html5
摘要:html设置强制缓存的方法 1 服务端设置好强制缓存后 2 总结 没命中缓存就走协商缓存 (如果requestheader 禁止缓存写死了 也会直接走协商缓存) 微信缓存机制不识别 <meta http-equiv="Cache-Control" content="no-cache, no-stor
阅读全文
摘要:html5 canvas抠图的方法 <!DOCTYPE html> <html> <body style="backgournd:#000"> <canvas id="myCanvas" width="300" height="150" style="border:1px solid #d3d3d3
阅读全文
摘要:html5 IOS 软键盘弹出解决方案 function iostcruanjianpan() { $('input,textarea,select').on('blur', function() { setTimeout(function() { //判断是不是继续点击第二个input继续 如果是
阅读全文
摘要:html5手机端播放音效不卡的方法线下载http://wxserver.knowway.cn/solosea/js/audioEngine.js 这个是性能不错 然后直接播放音效就可以了 audioEngine.playEffect('/solosea1/music/laidian.mp3', fa
阅读全文
摘要:IOS手机 html5页面 数字变成蓝色链接的原因 这个是ios手机自动识别 写如下代码 即可<pre> <meta name="format-detection" content="telephone=no" /></pre>
阅读全文
摘要:getvideoprogress(); function getvideoprogress() { setTimeout(function () { var vid = document.getElementById("video1"); var currentTime=vid.currentTim
阅读全文
摘要:getvideoprogress(); function getvideoprogress() { setTimeout(function () { var vid = document.getElementById("video1"); var currentTime=vid.currentTim
阅读全文
摘要:HTML5微信长按图片不会弹出菜单的解决方法 <pre><div ontouchstart = "return false;"></div></pre>上面代码这个长按不会弹出 复制提示 然后做成div 有图片用background:url(); 不要做成img 这样长按不会提示你发送图片 ps:
阅读全文
摘要:html5 audio标签切换播放音乐的方法<pre><audio id="music1" preload loop="loop"></audio><div style="width:720px; height:60px;" luyinpath="/weiqingshu/music/music.mp
阅读全文
摘要:HTML5微信jssdk录音播放语音的方法需要注意的2个问题1 就是一定要判断1秒内 录音都不算 ps:太短不能录音 2 录音超过1分钟 会发现正在录音突然消失 所以要写wx.onVoiceRecordEnd 这个是是1分钟会自动出发 然后写上传数据 ps这个必须要写在wx.startRecord里
阅读全文
摘要:html5点击input没有出现光标完美解决方案 <pre> <input type="text" placeholder="输入姓名" class="inputname" id="id_name"> <input type="text" placeholder="输入手机" class="inpu
阅读全文
摘要:html5滚动页面简单写法纵向滚动比较简单 直接在外面加个高度 然后overflow-y: auto; 横向比较复杂了外面写两层 最外面一层写个宽度 overflow-x: auto;第二层 写width:10000rem 宽度写死 写auto不行 不会自适应里面的宽度 如果点击按钮滚动可以采取如下
阅读全文
摘要:html5 canvas手写字代码(兼容手机端) <pre><!DOCTYPE html><html><head> <title>画板实验</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width
阅读全文
摘要:HTML5自定义select标签样式的方法 -webkit-appearance: none; 这个东西可以隐藏箭头 不过手机端就直接 设置透明度为0就行了(如果这种做法比前面个要麻烦点 毕竟还要对他赋值
阅读全文
摘要:html5获取自己定位的方法直接用高德地图api 不要用百度地图api 不准确 <pre><!doctype html><html><head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
阅读全文
摘要:htm5手机端实现拖动图片 <pre> <!doctype html><html><head> <title>Mobile Cookbook</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-widt
阅读全文
摘要:html5自动弹出软键盘的方法<pre> <textarea placeholder="说点什么......" autofocus="autofocus"></textarea></pre>
阅读全文
摘要:html5不能播放视频的方法H5不能播放视频的方法 格式工厂转换成 AVC 注意音频流 采样率和比特率 设置低一点 不然播放会卡住 还有点击播放必须要click 不要用touchstart没效果的
阅读全文
摘要:html5 点击播放video的方法<pre> <video videosrc="{$vo.shipinurl}" controls="" x5-playsinline="" playsinline="" webkit-playsinline="" poster=""> </video> var v
阅读全文
摘要:html5 微信真机调试方法 vConsolehttps://blog.csdn.net/weixin_36934930/article/details/79870240
阅读全文