ID is not the same with CLASS.

old (HH)
The ID and the CLASS in CSS are closely related with the ID and the CLASS in a document language, such as HTML, respectively. I think that the clue for understanding CSS ID and CSS CLASS is to understand the differences between ID and CLASS in a document language first. The key difference between ID and CLASS in a document language is that ID must be unique in a document, but CLASS may not be.
(#39619@0)
2001-4-2 -05:00

回到话题: 那位大侠能给我讲讲CSS里class=和id=的区别?我看了一些书,发现他们都没有讲明白,从举的例子看两者可以通用,对吗?

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=39619