2013-03-06 3 views
3

Menu div는 메뉴가 올라 갔을 때 너무 높기 때문에 닫을 때 완벽합니다. 나는 아래 오른쪽 DIV를 터치하는 메뉴 사업부를 가지고 할 정말로 확실하지 않다 그것을Div가 높은쪽으로 떠 다니는 방법

footer { 
    width: 100%; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
} 

#footer-content { 
    display: none; 
} 

#footer-left { 
    width: 20%; 
    height: 145px; 
    float: left; 
    background-color: #52291c;/*#805f4c;*/ 
    opacity: 0.8; 
} #footer-left h3 { 
    width: 95%; 
    font-size: 20px; 
    font-weight: lighter; 
    margin-top: 95px; 
    opacity: 1; 
    text-align: right; 
} #footer-left h3 a { 
    color: #fff; 
    text-shadow: 1px 1px #000; 
    text-transform: lowercase; 
} 

#footer-right { 
    width: 80%; 
    height: 145px; 
    float: right; 
    background-color: #B29F63; /*#B29F63*/ 
    opacity: 0.3; 
} #footer-right ul { 
    margin: 30px 15px; 
    font-size: 24px;  
} #footer-right ul li a { 
    color: #52291c; 
} 

.doing-tricks { 
    width: 150px; 
    position: relative; 
    left: 21%; 
    top: 132px; 
    font-size: 24px; 
    z-index: 100; 
} .doing-tricks a { 
    color: #52291c; 
} 

.toggle-footer { 
    width: 100px; 
    margin: 0px auto; 
    padding: 10px; 
    cursor: pointer; 
    color: #52291c; 
    text-align: center; 
    text-shadow: 1px 1px #fff; 
    background: #B29F63; 
    background: -moz-linear-gradient(top, rgba(254,255,255,1) 0%, rgba(178,159,99,1) 100%); /* FF3.6+ */ 
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(254,255,255,1)), color-stop(100%,rgba(178,159,99,1))); /* Chrome,Safari4+ */ 
    background: -webkit-linear-gradient(top, rgba(254,255,255,1) 0%,rgba(178,159,99,1) 100%); /* Chrome10+,Safari5.1+ */ 
    background: -o-linear-gradient(top, rgba(254,255,255,1) 0%,rgba(178,159,99,1) 100%); /* Opera 11.10+ */ 
    background: -ms-linear-gradient(top, rgba(254,255,255,1) 0%,rgba(178,159,99,1) 100%); /* IE10+ */ 
    background: linear-gradient(to bottom, rgba(254,255,255,1) 0%,rgba(178,159,99,1) 100%); /* W3C */ 
    opacity: 0.8; 
    border-top-left-radius: 5px; 
    border-top-right-radius: 5px; 
} 

jFiddle : http://jsfiddle.net/rFdwr/1/

+0

aaaaaaaaa 나는 예제를 보여 주었고 바로 예제를 보여 주면서 Q를 제거했습니다 ... –

답변

6

.doing-tricks의 위치 확인 absolute 대신 relative

.doing-tricks { 
    ... 
    position: absolute; 
    ... 
} 

그런 다음 바닥 글 안에 텍스트의 상단 위치를 조정해야합니다.

+0

고마워! 완벽하게 일했습니다 –

+0

@MichaelLibman 당신은 오신 것을 환영합니다. 이 답변을 수락 된 것으로 표시하십시오. – Tchoupi

관련 문제