클릭관련

클릭관련

QA

클릭관련

본문

9082494c6a00d7b2c54e258b0b6b9769_1477404394_7238.PNG

 로그인 후에 저렇게 뜨네요 로그인은 박스 한개로 해서  나오고 로그인 하면 로그아웃 마이페이지가 나오는데... 올래는 저 위에 박스에 들어가야하는거같은데 왜 로그아웃 마이페이지가 따로 밑으로 떨어져 나오나요?

 

.m02 {float:left;
            width: 100%;
         height: 30px;
         border:1px solid silver;
         box-sizing:border-box;
   background-color:white;
   text-align:center;
   }
  .m02 a{display:inline-block;
            width: 100%;
         height: 30px; 
   }
   .m03 {float:left;
            width: 50%;
         height: 30px;
         border:1px solid silver;
         box-sizing:border-box;
   background-color:white;
   text-align:center;
   }
   .m04 {float:right;
            width: 50%;
         height: 30px;
         border:1px solid silver;
         box-sizing:border-box;
   background-color:white;
   text-align:center;
   }

 

 

  <div class="m02">
      <? if(!$member['mb_id']){?>
     
   <li><a href="./board/bbs/login.php"/>Login</li>
  </div>
           <?}else{?>
      <div class="m03">  
        <li><p><a href="/board/bbs/logout.php">Logout</a></p></i>
  </div>
     <? if(strstr($member['mb_id'],'admin')){?>
  
  <li><p><a href="/board/adm/">admin</a></p></li>
       
  
     <?}else{?>
         <div class="m04">
  <li><p><a href="Mypage

http://timeplace.co.kr/board/bbs/board.php?bo_table=mypage">Mypage</a></p></i>
  </div>
     <?}?>
        <?}?>

이 질문에 댓글 쓰기 :

답변 1

보여주신 이미지와 소스만 가지고는 정확한 분석을 할 수 없지만

일단 문제로 보이는 것은 <div class="m02"> 와 <? if(!$member['mb_id']){?> 의 위치가 적절하지 못하게 배치되어 있습니다.

 

<div class="m02">
      <? if(!$member['mb_id']){?>

이렇게 된 것을

 

<? if(!$member['mb_id']){?>

    <div class="m02">

이렇게 바꿔보세요. 

답변을 작성하시기 전에 로그인 해주세요.
전체 59
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT