The only reason of using class is applying css to a dom object. How about style attribute and id attribute?
Id should be a real attribute although it can be used to apply css. It's a identify of a dom object. we can use GetElementByID to get a dom object.
We can use style= to specify css for dom objects. style may not be a real attribute either.
All by guessing :)
--
Feng
--
Feng
没有评论:
发表评论