I have other company's html, show three lines:
<div class="classA classB classC">A_display</div>
<div class="classB classC">B_no_display</div>
<div class="classC">C_no_display</div>
I need A_display display, and let B_no_display\C_no_display hide.
The classA, classB, classC's name is known and the class combination will not change.
Can I use CSS selector make it? Like using this css:
.classA .classB .classC{
/* todo how to display A_display, don't display B_no_display C_no_display*/
/* display: inline !important;*/
}
.classB .classC {
display: none;
}
.classC {
display: none;
}
Then the page show only one line:
A_display