随笔分类 - HTML5
摘要:box-sizing: border-box; http://zh.learnlayout.com/box-sizing.html10步掌握CSS定位文字纵向 line-heightcss 文字横向间距letter-spacing:2pxdisplay: inline display: inli...
阅读全文
摘要:1. 下载 jqueryui.com2. 使用
阅读全文
摘要:1. jquery.com 下载 api.jQuery.com 查看api important!!!2. 绑定事件 http://api.jquery.com/category/events/ bind():attach a handler to an event, As of jQuery ...
阅读全文
摘要:HTML5: localStorage 没有时间限制 sessionStorage 针对session数据存储, 浏览器关闭则失效cookie缺点: cookie不适合大量数据存储 localStorage localStorage savevar ta;var ...
阅读全文
摘要:1. createjs.com 下载 EaselJS.zip 2. 简单的数字增加例子 Canvas var canvas;var CANVAS_WIDTH = 500;var CANVAS_HEIGHT = 500;var stage;var txt;var coun...
阅读全文
摘要:1. Canvas画布 通常用js来描绘 Canvas var CANVAS_WIDTH = 200;var CANVAS_HEIGHT = 200;var myCanvas;var myContext;window.onload = function () { creat...
阅读全文
摘要:拖放 拖放: http://blogs.sitepointstatic.com/examples/tech/filedrag/2/index.html http://www.sitepoint.com/html5-ajax-fil...
阅读全文
摘要:1. controls自带效果 2. 自定义 播放 浏览器不支持此音频 3. 编解码工具 FFmpeg.org 进去需要转码文件的文件夹 ffmpeg路径 -i 需要转码文件名及后缀 -acodec libvorbis 想转成的文件...
阅读全文
摘要:1. 面向对象 /** * Created by Administrator on 2015/2/13. */var person = { name:"mirror", age:30, eat:function(){ alert("吃货"...
阅读全文
摘要:1. 输出 document.write(" ");2. 变量 var3. DOM简介 网页在加载时, 浏览器会创建页面的文档对象模型(Document Object Model) 添加监听器 document.getElementById("xx").addEventListener() 此方...
阅读全文
摘要:1. 转换transform: 2D转换 translate() rotate() scale() skew() 倾斜 matrix() 3D转换 rotateX() rotateY()2. 过渡 transition: transition-pro...
阅读全文
摘要:1. 对齐 margin水平对齐 position左右对齐 float左右对齐2. 分类属性 cursor 指向某元素时显示的指针类型 display 设置是否和如何显示元素3. 导航栏垂直导航栏水平导航栏 盒子模型 导航菜单1 ...
阅读全文
摘要:1. 基本知识 通配符 *{} 常用作margin padding为零2. 多类选择器 this is my web page this is my web page this is my web page 在CSS中 .p1{color: blue;} .p2{font-size: ...
阅读全文
摘要:1. CSS定位机制 普通流 浮动 绝对布局2. CSS position 属性 static left right top bottom属性无效 relative absolute fixed 滚动时固定不动3. 覆盖顺序 z-index 值越大越在上面4. 浮动 float =...
阅读全文
摘要:1. 盒子模型 2. CSS边框 border-radius 圆角边框 box-shadow 边框阴影3. CSS外边距合并 遵循 选取两个margin较大的 的原则4. 基本应用 盒子模型 ...
阅读全文
摘要:1. 基本语法 selector1, selector2{ property1 : value1; property2 : value2; } 如果value大于1个单词(如font-family的值可能是sans serif), 需要加上引号(font-family:"sans ...
阅读全文
摘要:1. CSS3背景//index.html haha haha haha haha haha haha haha haha haha haha haha haha haha haha haha haha haha...
阅读全文
摘要:HTML样式 外部样式表 内部样式表 内联样式表 //StyleTest.html styleTest 外部样式表 内部样式表 内联样式表//myStyle.cssh1{ color: darkorange;} H...
阅读全文