이것은 내가 사용하는 현재 CSS이지만 광고 디스플레이 없음을 디스플레이 없음으로 설정하고 싶지 않은 클래스를 설정합니다.
#parent :not(.firstchild) {
display:none;
}
그리고 여기에 html이 있습니다
<div id="parent">
<div class="firstchild"></div> <----- I dont want this set to display none
<div class="secondchild"></div><----- I want this set to display none
<div class="thirdchild"></div><----- I want this set to display none
</div>
그러나 모두 display : none ????으로 설정됩니다.
어떤 도움이 굉장 할 것입니다 :)
#parent div:not(:first-child) {
display:none;
}
<div id="parent">
<div class="firstchild">im the first</div>
<div class="secondchild">im teh second</div>
<div class="thirdchild">im the third</div>
</div>
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다