• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 JavaScript, TS 게시판 show라는 그룹명의 오류

show라는 그룹명의 오류

2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 글쓴이
  • #127678

    황종완
    참가자
    자바 스크립트 할떄 
    <div class="container mt-5">
      <ul class="list">
        <li class="tab-button">Products</li>
        <li class="tab-button orange">Information</li>
        <li class="tab-button">Shipping</li>
      </ul>
      <div class="tab-content">
        <p>상품설명입니다. Product</p>
      </div>
      <div class="tab-content show1">
        <p>스펙설명입니다. Information</p>
      </div>
      <div class="tab-content">
        <p>배송정보입니다. Shipping</p>
      </div>
    </div>
    
    $('.tab-button').eq(0).on('click', function(){
        $('.tab-button').removeClass('orange');
        $('.tab-button').eq(0).addClass('orange');
        $('.tab-content').removeClass('show1');
        $('.tab-content').eq(0).addClass('show1');
      })
        
      $('.tab-button').eq(1).on('click', function(){
        $('.tab-button').removeClass('orange');
        $('.tab-button').eq(1).addClass('orange');
        $('.tab-content').removeClass('show1');
        $('.tab-content').eq(1).addClass('show1');
      })
        
      $('.tab-button').eq(2).on('click', function(){
        $('.tab-button').removeClass('orange');
        $('.tab-button').eq(2).addClass('orange');
        $('.tab-content').removeClass('show1');
        $('.tab-content').eq(2).addClass('show1');
      })
    
    
    css. 도 자바도 그렇고 show 라는 그룹명을 쓰면 적용이 안되요. 다른 라이브러리 때문인가요?
    #127692

    codingapple
    키 마스터
    css중에 show같은게 하나 더 있거나 .show{} 위치가 너무 위에 있어서 그럴수도요
2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠