上一页 1 ··· 83 84 85 86 87
摘要: 日期1. 日期时间戳 +new Date() = new Date().getTime() 数组1. 类数组转数组 var arr = Array.prototype.slice.call(arguments) 2. 连接类数组 Array.prototype.push.apply(arr, arg 阅读全文
posted @ 2015-08-30 00:10 全玉 阅读(156) 评论(0) 推荐(0) 编辑
摘要: 改变文字颜色 ::selection { background: #f88; text-shadow: none; color: #000;}::-moz-selection { background: #f88; text-shadow: none; c... 阅读全文
posted @ 2015-08-23 13:19 全玉 阅读(690) 评论(0) 推荐(0) 编辑
摘要: dom.style.left 初始空值,必须在html行内样式定义值才有值,在css样式定义仍为空值 可读写,是字符串,读写是必须加px,否则无效 js设置之后,有值 设置非整数值,会保持原样,例如 style.left = 8.2... 阅读全文
posted @ 2015-08-01 20:49 全玉 阅读(772) 评论(0) 推荐(0) 编辑
摘要: 1. 块级元素(display: block) 1.1. 独占一行 1.2. 高度、宽度、行高、顶和底边距 可设置 1.3. 默认宽度 父容器100%2. 内联元素(display: inline) 2.1 和其他元素同一行 2.2 高度、宽度、顶和底边距 不可设置 2.... 阅读全文
posted @ 2015-07-28 11:19 全玉 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 水平居中 1. inline和inline-*元素水平居中:text-align:center 2. block元素水平居中: block定宽:margin-left: auto; margin-right; auto; block不定宽: a. 转为inline-block元素,使用text-al 阅读全文
posted @ 2015-07-28 10:40 全玉 阅读(279) 评论(0) 推荐(0) 编辑
摘要: static元素 margin-top/left负值,元素向指定方向移动, margin-bottom/right负值,元素不动,后续元素前移 float元素 左浮,与static一致(浮动元素加上相反方向的负margin,则会使行间距为0且内容重叠,设置足够大的负margin会使得浮动元素在同一行 阅读全文
posted @ 2015-07-17 18:36 全玉 阅读(180) 评论(0) 推荐(0) 编辑
摘要: var myVar = "3.14159";1. 转换为字符串str = someObj.toString()str = ""+ myVar2. 转换为整型int = ~~myVar 或 parseInt(myVar)3. 转换为浮点型float = 1*myVar 或 myVar - 0 或 pa... 阅读全文
posted @ 2015-07-10 10:10 全玉 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 1. 不使用外键,关联列建索引2. 不使用触发器3. 不使用预留字段4. 数字 > 日期、二进制 > 字符串5. char 数据长度固定,数据长度小于50Byte(15字符以内) varchar 大于50Byte(15字符以上) 阅读全文
posted @ 2015-07-07 10:26 全玉 阅读(155) 评论(0) 推荐(0) 编辑
上一页 1 ··· 83 84 85 86 87