资讯

Ryan Boudreaux continues his tutorial on getting acquainted with jQuery by showing you how to get objects by ID and Class selectors and by Tag and Attribute.
An id has to be unique on the page, while a class does not. That's the biggest distinction right there. If you need multiple things to behave the same, you use a class, and set all of their ...
If there are clashing definitions in a class and an id, the one in the id will weight out, since it's more specific.<BR><BR>It's usually my experience, that it's IE getting things wrong, while Moz ...