×

Loading...

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 -04:00
This post has been archived. It cannot be replied.
Page address has been copied. To share, click to copy page address.
Share Online by QR Code

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

Back To Forum: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论