Thanks for your time! The codes are very simple. I suppose it should display "This is CPU". But it didn't. Where am I wrong?
For people who cannot open Fiddle, here's the codes:
HTML:
<div id="tab1" class="active" ><p>This is CPU</p></div>
<div id="tab2"><p>This is MEM</p></div>
<div id="tab3"><p>This is Network IO Receive</p></div>
<div id="tab4"><p>This is Network IO Send</p></div>
CSS:
#tab1, #tab2, #tab3, #tab4 {
display: none;
}
.active {
display: block;
}
By add !important
it do works. But why if I changes all the ids to classes, it could work?
e.g.: Fiddle