开发者

Using same name for id and classname of an element?

I have some s in my webpage, is th开发者_如何学JAVAere anything wrong with sometimes using the same name as the classname and id? Something like:

<div id='foo' class='foo'>hello</div>

just wondering -

Thanks


Using identical IDs and class names will not give you any problems as long as the id attribute is unique.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜