Home 게시판 커뮤니티 Q&A 메뉴구성 질문드립니다.

2개 답변, 2 voices Last updated by Avatar of 00000000000000 7 years, 1 month 전
  • Avatar of 00000000000000
    Participant
    @ojesung
    #39487

    PHP로 기본메뉴 구성한것을 CSS로 변경중인데요,

     

    1. a >  이런 문구나 a > < (?) 이런문구 즉, 부등호가 들어가는 구문을 사용하는걸 봤는데 의미하는게 뭔지 알수있을까요?
    2. 예를들어 메뉴가 홈, 커뮤니티, Q&A로 구성했다고 쳤을 때 메인화면에서 홈버튼의 색상만 다르게 하고싶은데 알수있을까요? 즉 방문하고있는페이지만 색상을 변경하고 싶거든요.
    3. .main-navigation .current_page_item > a,
      .main-navigation .current-menu-item > a,
      .main-navigation .current_page_ancestor > a,
      .main-navigation .current-menu-ancestor > a {
      } 혼자해보니깐 여기서 원하는 색상지정하면 방문페이지 색상이 원하는 색으로 변하더라구요. 해석좀 부탁드립니다.
    4. :hover > a    /     :hover a          이 두개가 무슨차이가 있는지도 알고싶어요

     

    독학하는 초보라 모른는게 너무 많네요. 답변부탁드립니다~~

    Avatar of Matthew ParkMatthew Park
    Moderator
    @hackya
    #39489

    parent > child

    child selector 입니다.

    https://developer.mozilla.org/en-US/docs/Web/CSS/Child_selectors

    Avatar of Matthew Park
    Attorney, front-end developer, digital media artist, WordPress enthusiast, & a father of 4 wonderful children.

    Lives in Colorado.

    Avatar of 00000000000000
    Participant
    @ojesung
    #39498

    답변 감사드립니다 ^^

3 글 보임 - 1에서 3 까지 (총 3 중에서)
  • 답변은 로그인 후 가능합니다.