摘要: HTML: <button type="button" id="showHidden">点击切换div的隐藏与显示</button> <div id="div1">请叫我第一层</div> <div id="div2">请叫我第二层</div> JS: <script type='text/java 阅读全文
posted @ 2016-04-21 11:14 SKILL·NULL 阅读(13082) 评论(1) 推荐(0) 编辑
摘要: HTML: <input type="file" style="display:none" id="addfile-btn"> <div onclick="addfile()">点击上传图片</div> JS: <script> function addfile() { document.getEl 阅读全文
posted @ 2016-04-20 14:29 SKILL·NULL 阅读(2725) 评论(0) 推荐(1) 编辑
摘要: 按钮点击显示隐藏层(再次点击按钮则隐藏层关闭): HTML部分: <button type="button" id="show" onclick="showHidden()">点我显示隐藏层</button> <div id="hidden" style="display:none">我是隐藏层。< 阅读全文
posted @ 2016-04-13 19:42 SKILL·NULL 阅读(923) 评论(0) 推荐(0) 编辑
摘要: 注意:background属性中的背景图片和颜色混合,只能在一个background属性中。属性值:background-blend-mode: normal; //正常 background-blend-mode: multiply; //正片叠底 background-blend-mode: s 阅读全文
posted @ 2016-03-25 12:28 SKILL·NULL 阅读(608) 评论(0) 推荐(0) 编辑
摘要: 阿里云服务器出现Warning: Cannot modify header information - headers already sent by (output started at 问题的解决方法: 首先查看header("Content-type:text/html;charset=utf 阅读全文
posted @ 2016-01-11 15:30 SKILL·NULL 阅读(476) 评论(0) 推荐(0) 编辑
摘要: 清除Windows桌面快捷方式小箭头,需要重启,且不会导致软件无法锁定到任务栏。新建.reg的注册表文件,命名随意,内容如下: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\lnkfile]"IsShortcut"="" [HKEY_ 阅读全文
posted @ 2016-01-11 09:54 SKILL·NULL 阅读(257) 评论(0) 推荐(0) 编辑
摘要: js部分: <!--自动更新时间--><script>function show(){var date = new Date(); //日期对象var now = "";now = date.getFullYear()+"年"; //读英文就行了now = now + (date.getMonth( 阅读全文
posted @ 2016-01-08 14:26 SKILL·NULL 阅读(2288) 评论(0) 推荐(0) 编辑
摘要: <!doctype html> <html lang="zn-CN"> <head> <meta http-equiv="content-type" content="charset=UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edg 阅读全文
posted @ 2015-12-24 15:27 SKILL·NULL 阅读(243) 评论(0) 推荐(0) 编辑
摘要: HTML部分: 1.<a onclick="logoClick()"></a> 2.<div id="canvasZone"> <canvas id="myCanvas"></canvas> </div> CSS部分: #canvasZone { width: 100%; height: 100%; 阅读全文
posted @ 2015-12-18 22:05 SKILL·NULL 阅读(973) 评论(0) 推荐(0) 编辑
摘要: if(navigator.userAgent.indexOf("MSIE 6.0") < 0) { //相应JavaScript脚本} 阅读全文
posted @ 2015-11-24 15:18 SKILL·NULL 阅读(178) 评论(0) 推荐(0) 编辑