摘要:
1.步骤: $ git init $ git status $ git add $ git status $ git commit m "myKugou" $ git remote add origin https://github.com/ ...(复制过来) $ git push u or or 阅读全文
摘要:
一、 jQuery 基础 1.安装jQuery `` `` 2.ready 事件(等待DOM就绪) 用法(写多个 不会覆盖) $(document).ready(function(){ }) //简写(function可写选择器 例:" box") $(function(){ }) 与onload的 阅读全文
摘要:
一、查询CSS样式 1.查询style属性样式 element.style.cssAttrName 要查询的样式必须写在style 属性里 2.查询计算出的样式 window.getComputedStyle IE9+ 标准浏览器 getComputedStyle 第二个参数可以指定after或be 阅读全文
摘要:
一、节点 1.节点分类 document : 文档节点 9 element :元素节点 1 attr : 属性节点 2 text : 文本节点 3 comment : 注释节点 8 2.节点属性 nodeName 节点名字 元素的nodeName是标签名 document : document el 阅读全文
摘要:
一、事件基础 1.绑定事件 把事件当做HTML元素的属性 `` 把事件当做dom对象的方法 事件监听方式 (eventName, fn, true/false) (eventName, fn)(IE8 ) 2. 解除事件的绑定 绑定方式: 把事件当做html元素属性 / 把事件当做dom对象的方法 阅读全文
摘要:
<!DOCTYPE html 下拉菜单 .box{ width: 200px; margin:0 auto; text align:center; } ul{ list style:none; } li{ width:200px; line height:40px; background color 阅读全文
摘要:
BOM(浏览器对象模型) 一、window 1. 定义 window是js在浏览器环境中 全局变量 函数就是window的方法 全局变量就是window的属性 2. 属性 document location history screen navigator innerWidth 文档区域宽度 inn 阅读全文
摘要:
<!DOCTYPE html Unicode和字符的转换工具 div{ display:flex; } input{ font size:20px; line height:100px; text align:center; background color: eee; } button{ widt 阅读全文
摘要:
<!DOCTYPE html 计算器 .container{ margin:0 auto; width:600px; height:600px; background color: ccc; display:flex; padding:10px; flex wrap:wrap; justify co 阅读全文
摘要:
<!DOCTYPE html 表单验证 input,button{ box sizing: border box; width:300px; padding:10px; font size:16px; line height: 18px; border:1px solid ccc; } button 阅读全文