CSS: styling when element has two classes

后端 未结 3 1316
后悔当初
后悔当初 2021-01-17 07:26

I have been looking at the w3 page on css selectors and have not found any promising leads, so I thought I would ask...

Is there a way to style a single element with

相关标签:
3条回答
  • 2021-01-17 07:56

    I just tried the code you put up, and it works fine (on Chrome at least). Maybe there is a mistake in your CSS elsewhere, or some other style is overriding it.

    0 讨论(0)
  • 2021-01-17 07:57

    You just answered yourself. Be wary of the IE6 bug.

    0 讨论(0)
  • 2021-01-17 08:09

    Yeah dude, you have just answered it yourself. Have a quick scan on these two pages -

    1. http://webdesign.about.com/od/css/qt/tipcssmulticlas.htm
    2. http://www.maxdesign.com.au/articles/multiple-classes/

    Hope that helps :)

    Nick

    0 讨论(0)
提交回复
热议问题