上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 33 下一页
摘要: 1, <!DOCTYPE html> <html> <head> <style> div.container { width:30em; border:1em solid; } div.box { box-sizing:border-box; -moz-box-sizing:border-box; 阅读全文
posted @ 2020-09-13 12:42 琥珀君 阅读(818) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-09-13 11:01 琥珀君 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 1,只能同域加载 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, 阅读全文
posted @ 2020-09-12 12:51 琥珀君 阅读(393) 评论(0) 推荐(0) 编辑
摘要: 1, this.domElement.addEventListener( 'contextmenu', function ( event ) { event.preventDefault(); }, false ); 阅读全文
posted @ 2020-09-12 10:42 琥珀君 阅读(703) 评论(0) 推荐(0) 编辑
摘要: 1, //随机生成8位数字 function nonceStr() { static $seed = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9); $str = ''; for ($i = 0; $i < 6; $i++) { $rand = rand(0, count( 阅读全文
posted @ 2020-09-05 18:24 琥珀君 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 1, // 数据库操作 /* mysql -hlocalhost -uroot -p set names gbk; show databases; CREATE DATABASE IF NOT EXISTS `oupai` CHARSET utf8; USE oupai; show tables; 阅读全文
posted @ 2020-09-05 18:18 琥珀君 阅读(440) 评论(0) 推荐(0) 编辑
摘要: 1, 解决方案: 直接在CSS 文件中添加下面的代码,就可以实现了在手机端禁止粘贴复制的功能: *{ -webkit-touch-callout:none; /*系统默认菜单被禁用*/ -webkit-user-select:none; /*webkit浏览器*/ -khtml-user-selec 阅读全文
posted @ 2020-09-05 17:50 琥珀君 阅读(652) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-08-27 12:31 琥珀君 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 引入引擎文件 template.js 1,定义引擎模块 <script type="text/html" class="card-tpl"> <!-- 生成案例列表循环 --> <%for(var i = 0;i < cards.length; i++){%> <div class="card-wr 阅读全文
posted @ 2020-08-27 12:06 琥珀君 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 1, .project-header { height: 64px; font-size: 20px; text-align: center; /* position: relative; */ background:transparent; position:absolute; z-index: 阅读全文
posted @ 2020-08-27 11:52 琥珀君 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 1, // 根据屏幕宽度,动态设置字体的大小 !function(o, e) { var n = o.documentElement, t = (window, function() { var o = n.clientWidth; o && (n.style.fontSize = o > 768 阅读全文
posted @ 2020-08-25 17:27 琥珀君 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 1, 移动端click时间、touch事件、tap事件详解 一、click 和 tap 比较 两者都会在点击时触发,但是在手机WEB端,click会有 200~300 ms,所以请用tap代替click作为点击事件。 singleTap和doubleTap 分别代表单次点击和双次点击。 二、关于ta 阅读全文
posted @ 2020-08-25 17:09 琥珀君 阅读(281) 评论(0) 推荐(0) 编辑
摘要: 1, 打开链接时 ,改为 replace的方式打开 // window.location.href = "" + url; window.location.replace("" + url); js禁止原生手机返回键(物理返回键) $(document).ready(function() { if 阅读全文
posted @ 2020-08-24 17:38 琥珀君 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 1, <!--百度统计代码及百度统计代码安装说明如下--> <script type="text/javascript"> var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://" 阅读全文
posted @ 2020-08-23 10:25 琥珀君 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 1, <!-- Google Tag Manager 20180706添加--> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var 阅读全文
posted @ 2020-08-23 10:16 琥珀君 阅读(239) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-08-22 12:50 琥珀君 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 1, <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0"> window.onload = funct 阅读全文
posted @ 2020-08-21 11:42 琥珀君 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 1,禁止拖动 2,禁止选中文字图片等 body { height: 100%; overflow: hidden; font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; color: #666; background-color: #ff 阅读全文
posted @ 2020-08-20 23:10 琥珀君 阅读(1501) 评论(0) 推荐(0) 编辑
摘要: 1, /* 通用样式 */ *,::after,::before { margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; -webkit-box-sizing: border-box; -moz-box-sizing: b 阅读全文
posted @ 2020-08-20 22:29 琥珀君 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1. 点击“属性”,选择菜单中的“文件关联”。 2. 在弹出的新窗口中点击如图所示的一个添加按钮。 3. 点击添加一个文件掩码,就会弹出一个新的窗口。 4. 现在可以添加掩码了,也就是关联你想要关联文件的扩展名,格式一定要是“*.php”或者“*.html”(关联多个扩展名时用“;”隔开)。如果只写 阅读全文
posted @ 2020-08-20 18:25 琥珀君 阅读(181) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 33 下一页