摘要: 操作符 一元操作符 ++ -- e.g. var age = 29; ++age; //30 age++; //31 e.g.1 var age = 29; var num = ++age; //num = 30 var num2 = age++; //num2 = 29 算数操作符 + - * / 阅读全文
posted @ 2016-08-13 10:36 Kuckboy_shan 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 基本的数据类型 number -整数 - 15 - 0377(八进制) e.g.var num = 070; //56 - 0xff (十六进制)e.g. var num = oxA; //10 -浮点数 - 1.2 - 1.4E2 (科学计数法) e.g. var num = 2.34e2; // 阅读全文
posted @ 2016-08-13 10:31 Kuckboy_shan 阅读(213) 评论(0) 推荐(0) 编辑
摘要: js调试 打开chrome的调试面板 f12 control+shift+i 右键-》检查 调试器 在调试面板中的Sources中 基本语法 变量 对象 。。。 表达式 函数 语句 写程序 直接量 var number = 1; 变量 声明变量 var age; var age, name, sex 阅读全文
posted @ 2016-08-13 10:30 Kuckboy_shan 阅读(309) 评论(0) 推荐(0) 编辑
摘要: html内容 css样式 javascript行为 document.write("hello world!"); 特性: 运行环境 解释型 <script> var number = 1; while(number < 1000) { document.write('<p>'+number+'</ 阅读全文
posted @ 2016-08-13 10:26 Kuckboy_shan 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 字体大小 font-size : <length> | <percentage> | <absolute-size> | <relative-size> 主要是length 和 percentage absolute-size: small,middle 。。。 length px em % 1em 阅读全文
posted @ 2016-08-02 12:47 Kuckboy_shan 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 盒模型概念、width、height、padding、margin(水平居中)、border、border-radius、overflow、box-sizing、box-shadow、outline css盒模型 width : <length> | <percentage> | auto | in 阅读全文
posted @ 2016-08-02 11:41 Kuckboy_shan 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 选择器 简单选择器 伪元素选择器 组合选择器 标签选择器 p{color:blue;} 类选择器 .special{color:blue;} 多个组合 .className - . - 字母,数字,-,_ - className必须以字母开头 - 区分大小写 - 出现多次 id选择器 #ban {c 阅读全文
posted @ 2016-08-01 23:22 Kuckboy_shan 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 选择器 属性声明=属性名:属性值 注释 /* */ 浏览器的私有属性 chrome、Safari -webkit- firefox -moz- IE -ms- opera -o- e.g. .pic { -webkit-transfrom:rotate(-3edg); -moz-transfrom: 阅读全文
posted @ 2016-07-30 23:51 Kuckboy_shan 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 虽然我已经可以使用很多种编程语言进行工作,但我的工作常常会要求我快速掌握一门新的语言。我没有选择去阅读几百页的程序手册,而是快速浏览10 到15页的教程(可以在Google中搜索),并把程序语言的语法参考说明印在小卡片上(在google里搜索language to learn+reference c 阅读全文
posted @ 2016-07-25 09:38 Kuckboy_shan 阅读(141) 评论(0) 推荐(0) 编辑
摘要: html的概念 hyper text markup language 超文本标记语言 html的发展史 1991 html 1995 html2 1996 html3.2 1997 html4.0 1999 html4.01 2000 xhtml1.0 2001 xhtml1.1 2005 xhtm 阅读全文
posted @ 2016-07-25 01:00 Kuckboy_shan 阅读(163) 评论(0) 推荐(0) 编辑