1、IE6怪异解析之padding与border算入宽高 原因:未加文档声明造成非盒模型解析 解决方法:加入文档声明<!doctype html> 2、IE6在块元素、左右浮动、设定marin时造成margin双倍(双边距) 解决方法:display:inline 3、以下三种其实是同一种bug,其 ...
分类:
其他好文 时间:
2016-10-28 15:18:05
阅读次数:
272
1、 动态路由匹配 比如:(动态路由的高级匹配) https://github.com/vuejs/vue-router/blob/next/examples/route-matching/app.js 2、 编程式导航 (1)router.push(…) 使用router.push(…)【等同于< ...
分类:
其他好文 时间:
2016-10-28 15:15:18
阅读次数:
438
1. 合理使用title, description, keywords2. 合理使用h1 - h6, h1标签的权重很高, 注意使用频率3. 列表代码使用ul, 重要文字使用strong标签4. 图片添加alt属性, title可选。 img最好加上宽, 高利于加载5. 重要代码在前面, 通过css ...
分类:
其他好文 时间:
2016-10-28 15:14:54
阅读次数:
234
/*控制台输出*/ console.log(“内容”) /*控制台警告*/ console.warn(“内容”) /*错误提示*/ console.error(“内容”) /*弹出警告框*/ alert(“内容”) /*文档打印输出*/ document.write() /*重要*/ color: ...
分类:
Web程序 时间:
2016-10-28 13:30:28
阅读次数:
335
input[type='text']文本框value改变触发事件一些属性的区别oninput,onpropertychange,onchange: 文本框的点击全选状态onclick="select();" 用法1:直接html标签里添加:<input type="text" onclick="se ...
分类:
Web程序 时间:
2016-10-28 03:04:01
阅读次数:
328
测试一: var fud01 = function() { var temp = 100; this.temp = 200; return temp + this.temp; } alert(typeof(fud01)); alert(fud01()); 运行结果: function 300 最普通 ...
分类:
其他好文 时间:
2016-10-28 02:36:26
阅读次数:
172
上一篇,我已经模仿as,加入了LBitmap和LBitmapData类,并且用它们实现了静态图片的显示。这次用Sprite来动态显示图片。依然遵循上一篇对显示对象的处理的思路,添加LSprite类,并追加show方法,如下: 因为Sprite上可以有图片等其他的可显示对象,所以我在其构造函数里,添加 ...
分类:
Web程序 时间:
2016-10-27 23:10:14
阅读次数:
200
O: 1、A conclusion of CodePath--Animations(https://guides.codepath.com/android/Animations)2、What is aar?3、figure out the realization of Project Materia ...
分类:
其他好文 时间:
2016-10-27 19:16:48
阅读次数:
251