摘要: loadXML() 方法用于加载字符串(文本) load() 用于加载文件。 x.getElementsByTagName(name) - 获取带有指定标签名称的所有元素 x.appendChild(node) - 向 x 插入子节点 x.removeChild(node) - 从 x 删除子节点 阅读全文
posted @ 2016-10-28 13:15 游家金 阅读(90) 评论(0) 推荐(0) 编辑
摘要: //边界线 border: 1px solid #E4E4E4; //绝对 定位 position: absolute; //相对定位 position: relative; //超出部分隐藏 overflow: hidden; //行高 line-height: 43px; //字体大小/行高 微 阅读全文
posted @ 2016-10-28 13:14 游家金 阅读(87) 评论(0) 推荐(0) 编辑
摘要: blue:蓝色 red:红色 yellow:黄色 green:绿色 white:白色 gray:灰色 /*去掉下划线*/ text-decoration: none; /*添加下划线*/ text-decoration: underline; /*字斜体*/ font-style:italic; / 阅读全文
posted @ 2016-10-28 13:13 游家金 阅读(131) 评论(0) 推荐(0) 编辑
摘要: /*控制台输出*/ console.log(“内容”) /*控制台警告*/ console.warn(“内容”) /*错误提示*/ console.error(“内容”) /*弹出警告框*/ alert(“内容”) /*文档打印输出*/ document.write() /*重要*/ color: 阅读全文
posted @ 2016-10-28 13:12 游家金 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 1. CSS基础选择器 html负责结构 ,css负责样式,js负责行为 css写在head标签里面,容器style标签 <style type="text/css"> body{ background-color: pink; } </style> 常见的属性: h1{ color: blue; 阅读全文
posted @ 2016-10-19 14:36 游家金 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 一、 列表 列表是有三种形式 1.1 无序列表 无序列表,用来表示一个列表语义,并且每个项目与项目之间是不分先后顺序的 ul 的英文unordered list “无序列表” li 的英文 list item “列表项” 你会发现 ,这个我们学习的“组标签”,就是要么不写,要写就写一组 <ul> < 阅读全文
posted @ 2016-10-19 14:34 游家金 阅读(104) 评论(0) 推荐(0) 编辑