开发者

What is ".foo{}" in the beginning of a stylesheet?

I would like t开发者_开发技巧o know what is the meaning of ".foo{}"

It is placed at the beginning of a css stylesheet i have been modifying.


It's just a CSS block modifying the class foo.

So, every tag in the HTML file with class="foo" would be affected by that CSS block, which in your case does nothing, with what you posted.


all elements with the foo class have the style between the curly brackets after that (none)


Applies style to any HTML element with class "foo".

HTH.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜