客户端:HTML,DOM和CSS? [英] Client Side: HTML, DOM and CSS?

查看:89
本文介绍了客户端:HTML,DOM和CSS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我没有广泛地在客户端/前端的应用程序工作,我试图阅读关于 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:


  1. 解释我简单的英语HTML,CSS和DOM如何工作?

  2. 从客户端技术角度来看,它们如何相互关联?

更新
我经历过 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆