DOM scripting: web design with javascript and DOM
2015-10-23 03:12
579 查看
Three sheets to the Web
Structure : describe the semantic meaning of contentPresentation : describes how the content should be displayed
Behavior : describes how the content should react to events
Web design discipline : Separation
Use (X)HTML to structure your documents.Use CSS to attach presentational information.
Use DOM scripting to apply behavioral instructions.
DOM
Tree: element node, attribute node, text node
Every element in a document is an object, and every one of these objects has a whole collection of properties.Position property :
parentNode, nextSibling, previousSibling, childNodes, firstChild, and lastChild
Identity property: nodeType, nodeName
Style property: (style property is an object)
/p/ id=”example” style=”color: grey; font-family: ‘Arial’,sans-serif;”> /p/
相关文章推荐
- JQuery1——基础($对象,选择器,对象转换)
- Android学习笔记(二九):嵌入浏览器
- Android java 与 javascript互访(相互调用)的方法例子
- JavaScript演示排序算法
- javascript实现10进制转为N进制数
- 2019年开发人员应该学习的8个JavaScript框架
- HTML中的script标签研究
- 对一个分号引发的错误研究
- 异步流程控制:7 行代码学会 co 模块
- ES6 走马观花(ECMAScript2015 新特性)
- JavaScript拆分字符串时产生空字符的原因
- Canvas 在高清屏下绘制图片变模糊的解决方法
- IE8开发人员工具教程(二)
- Mootools 1.2教程(2) DOM选择器
- DOM 事件流详解
- 在flex中执行一个javascript方法的简单方式
- Flex结合JavaScript读取本地路径的方法
- Dom在ajax技术中的作用说明