随笔分类 - Html5技能
收集工作中用到的H5实用技术
摘要:1,a 标签在中,href target 这样写,在页面点击后就有回页面顶部的效果 <div class="col-md-6 col-sm-6 all"> <a href="" target="" class="photo"><img src="images/product/wait.png" />
阅读全文
摘要:1, // 方案一 O.TEMPLATE = '<div class="viewer-container">\ <div class="viewer-canvas"></div>\ <div class="viewer-footer">\ <div class="viewer-title"></di
阅读全文
摘要:1, <li class="remove_frame" style="display:n"><a href="javascript:void(0);" onclick="spanClick(this)" title="刷新模型"></a></li> 2,a标签刷新当前页面 <a href="java
阅读全文
摘要:1, 加载资源,强制要求https协议 <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> 2, <meta name="description" content="执行按钮提交创建圆形进度加
阅读全文
摘要:1, <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-wid
阅读全文
摘要:1, <!DOCTYPE html> <html> <head> <title>全屏视频背景</title> <meta charset="utf-8"> <style> body,html { width: 100%; height: 100%; } * { margin: 0; padding:
阅读全文
摘要:1,home.html中代码 <iframe src="https://www.aliyun.com/page-source/domain/hosting/vm_create_successfully" frameborder="0" height="100%" width="100%"> </if
阅读全文
摘要:1, <!-- 音乐按钮 --> <div class="bgmusic generalF"></div> <!-- 音乐模块 --> <audio id="myAudio" hidden="true" autoplay="autoplay" loop="loop" preload="auto" c
阅读全文
摘要:1,访问地址: https://www.xxx.com/xxx.html?id=bmRMH3GfST <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="
阅读全文
摘要:1,屏幕宽高 console.log(window.outerWidth); console.log(window.outerHeight); 2,页面宽高 console.log(window.innerWidth); console.log(window.innerHeight);
阅读全文
摘要:1, 一、Pointer Lock API是干嘛用的? 用一句话说明Pointer Lock API的作用就是:Pointer Lock API可以让你的鼠标无限移动,脱离浏览器窗体的限制! 使用示例
阅读全文
摘要:1, <!-- 滚动限制在一个区域 --> <div style="width: 100vw; height: 84vh; overflow: hidden;"> <div style="width: 100%; height: 100%; overflow-y: auto; overflow-x:
阅读全文
摘要:1, <div class="col-12@sm"> <h3>添加元素</h3> <p>无论您在DOM中添加元素的哪个位置,它都会显示在网格中(假设您使用默认的排序方式)。 考虑到这一点,您可以追加,前置或插入元素,以便让它们以正确的顺序显示。</p> <div class="code-block"
阅读全文
摘要:1,div 循环添加点击事件 <div class="video home_video"> <div class="videolist" vpath="4.mp4" ipath="4.mp4"><img src="../common/images/theme/default/video_icon.p
阅读全文
摘要:1,HTML及 JS 代码 <!-- 视频播放 --> <div class="video home_video"> <div class="videolist" vpath="video/1.mp4" ipath="video/6.mp4"><img src="common/images/them
阅读全文
摘要:1, <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> 签名字段 <meta name="description" content=""> <meta name="keywords" content=""> <meta name="auth
阅读全文
摘要:1,添加到head标签中去 <!-- 禁用右键 --> <script type="text/javascript"> function stop() { return false; } document.oncontextmenu = stop; </script> </head>
阅读全文