2016年11月4日
摘要: HTML 标记 <hr width=”80%” size="10px" noshade>//水平线长80% 线粗10px 实体线 字符控制标记 <b>…</b> 粗 <i>…</i> 斜 <s>…</s> 删 <u>…</u> 下划<tt>…</tt> 电报 <sub>…</sub> 下标 <sup 阅读全文
posted @ 2016-11-04 13:50 再美的梦。 阅读(342) 评论(0) 推荐(0) 编辑
  2016年8月31日
摘要: <div class="container"> <div class="bg_con"> <input id="checked_1" type="checkbox" class="switch" /> <label for="checked_1"></label> </div> </div> .sw 阅读全文
posted @ 2016-08-31 13:56 再美的梦。 阅读(226) 评论(0) 推荐(0) 编辑
  2016年8月11日
摘要: function unique(arr) { var result = [], hash = {}; for (var i = 0, elem; (elem = arr[i]) != null; i++) { if (!hash[elem]) { result.push(elem); hash[el 阅读全文
posted @ 2016-08-11 11:42 再美的梦。 阅读(125) 评论(0) 推荐(0) 编辑
摘要: Javascript刷新页面的几种方法: 1 history.go(0) 2 location.reload() 3 location=location 4 location.assign(location) 5 document.execCommand(‘Refresh‘) 6 window.na 阅读全文
posted @ 2016-08-11 11:11 再美的梦。 阅读(880) 评论(0) 推荐(0) 编辑
  2016年5月24日
摘要: <!DOCTYPE html><html> <head> <style> /*首页右侧快速导航栏*/.rightNav{position:fixed; width:140px; right:0; top:180px; _position:absolute; text-align:left; curs 阅读全文
posted @ 2016-05-24 17:43 再美的梦。 阅读(181) 评论(0) 推荐(0) 编辑
摘要: <script> var Sys = {}; var ua = navigator.userAgent.toLowerCase(); if (window.ActiveXObject){ Sys.ie = ua.match(/msie ([\d.]+)/)[1] if (Sys.ie<=8){ co 阅读全文
posted @ 2016-05-24 17:30 再美的梦。 阅读(162) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><meta charset="utf-8"><head> <title>jquery实现页面皮肤切换并保存</title> <link title="green" rel="stylesheet" href="css/skin_0.css" id="cssfile"> 阅读全文
posted @ 2016-05-24 17:28 再美的梦。 阅读(207) 评论(0) 推荐(0) 编辑
摘要: <script> 第一种方法 随机生成六位数 永不会重复 可以更改成一次生成一位数 alert(math(1)) function math(math){ // 定义存放生成随机数的数组 var array=[]; // 循环N次生成随机数 for(var i = 1 ;i<=math ; i++) 阅读全文
posted @ 2016-05-24 17:21 再美的梦。 阅读(3935) 评论(0) 推荐(0) 编辑