Client Side: HTML, DOM and CSS?(客户端:HTML、DOM 和 CSS?)
问题描述
我没有在应用程序的 Client Side/Front End
上进行广泛的工作,我正在尝试阅读有关 HTML、CSS 和 DOM
的信息,但不知何故无法弄清楚找出它们之间的区别,如果有人可以的话,我会非常感激:
I have not worked extensively on Client Side/Front End
of the Application and I am trying to read about HTML, CSS and DOM
but somehow am not able to figure out difference between them and so would really appreciate if someone can:
- 用简单的英语解释一下 HTML、CSS 和 DOM 是如何工作的?
- 从客户端技术的角度来看,它们如何相互关联?
更新我浏览了 wikipedia
文章,但无法清楚地理解 DOM 的工作原理.
Update
I have gone through wikipedia
articles but not able to clearly understand working of DOM.
谢谢.
推荐答案
HTML 是您网站上的内容(标题、列表、表格)
HTML is what is on your website (headings, lists, tables)
CSS 就是这些东西的样子(边框、颜色、字体大小)
CSS is what those things look like (borders, colours, font sizes)
DOM 是您通过 javascript 访问这些东西的方式(获取节点、添加新元素、更改它们的样式)
DOM is how you access those things through javascript (getting nodes, adding new elements, changing their style)
这是 3 个一起工作的示例(在 ie 中似乎不起作用)http://jsfiddle.net/gj9zT/
Here is an example of the 3 working together (doesn't seem to work in ie) http://jsfiddle.net/gj9zT/
这篇关于客户端:HTML、DOM 和 CSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:客户端:HTML、DOM 和 CSS?


- addEventListener 在 IE 11 中不起作用 2022-01-01
- 如何使用 JSON 格式的 jQuery AJAX 从 .cfm 页面输出查 2022-01-01
- Quasar 2+Apollo:错误:找不到ID为默认的Apollo客户端。如果您在组件设置之外,请使用ProvideApolloClient() 2022-01-01
- 使用RSelum从网站(报纸档案)中抓取多个网页 2022-09-06
- Css:将嵌套元素定位在父元素边界之外一点 2022-09-07
- Flexslider 箭头未正确显示 2022-01-01
- 400或500级别的HTTP响应 2022-01-01
- 失败的 Canvas 360 jquery 插件 2022-01-01
- Fetch API 如何获取响应体? 2022-01-01
- CSS媒体查询(最大高度)不起作用,但为什么? 2022-01-01