I have an Html that contains something like: (Multiple divs within div A).
<div class="a">
<div class="b"></div>
</div>
我想:
.a div {
border: solid;
border-width: thin;
}
.b {
border: none;
border-width: 0px;
border-collapse: collapse;
}
For some reason b s values will not override a. however, if i just write a rather than "a .div" i won t get the behavior expected for the other divs inside a.
The only way i got this to work is using "important!" (ie "border: none!important";) but that seems less than elegant.
热爱对那里正在发生的一切的想法。
Ehud。