고수님들 도와주세요....CSS로된 메뉴부분만 ie8,9 등에서 틀어져 보여요...

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!
고수님들 도와주세요....CSS로된 메뉴부분만 ie8,9 등에서 틀어져 보여요...

QA

고수님들 도와주세요....CSS로된 메뉴부분만 ie8,9 등에서 틀어져 보여요...

본문

 

그누보드에다가 예전에 테이블로 만들고 메뉴는 플래쉬로 만들었다가 메뉴부분만 CSS로 다시 만들었는데,

익스플로러11에서는 잘구동이 되는데 하위버전에서 CSS로 만들어진 메뉴부분만 틀이 깨지는데

제가 어떻게 손을 못대겠어요....

 

아래 코드인데 어떤부분을 고쳐야 되는지요....

고수님들의 도움의 손길을 기다립니다...


<?
</style>
include_once("./_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/lib/visit.lib.php");
include_once("$g4[path]/lib/outlogin.lib.php");
//echo outlogin("2ustory_white"); // basic 스킨으로 아웃로그인을 출력합니다.
$g4['title'] = " ";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>수원 금호프라자에 오신것을 환영합니다.</title>
<style type="text/css">
.navi,
.navi ul,
.navi li,
.navi a {
 margin: 0;
 padding: 0;
 border: none;
}
.navi {  
 list-style-type: none; 
 height: 40px; 
}
.navi li {
 float: left;
 position: relative;
 background: #0066cc;
 z-index: 1; 
}
.navi li:first-child{
 -webkit-border-radius: 5px 0 0 0;
 -moz-border-radius: 5px 0 0 0;
 border-radius: 5px 0 0 0;
}
.navi li:last-child{
 -webkit-border-radius: 0 5px 0 0;
 -moz-border-radius:  0 5px 0 0;
 border-radius:  0 5px 0 0;
}
.navi li a { 
 display: block; 
 font-family:"굴림",gulim,sans-rerif; 
 font-weight:bold; 
 width:110px;
 padding:0 20px;
 margin:10px 0;
 text-align:center; 
 color: #ffffff; 
 text-decoration: none; 
 
 border-left:1px solid #006633;
 border-right:1px solid #003333;
 -webkit-transition: color .2s ease-in-out;
 -moz-transition: color .2s ease-in-out;
 -o-transition: color .2s ease-in-out;
 -ms-transition: color .2s ease-in-out;
 transition: color .2s ease-in-out;
}
.navi li:first-child a{
border-left:0;
}
.navi li:last-child a{
border-right:0;
}
.navi li a:hover { 
 color:#F90; 
}
.navi li ul {  
 opacity: 0; 
 position: absolute; 
 left: 0; 
 background: #3366cc; 
 list-style-type: none; 
 padding: 0; 
 margin: 0;
  
 -webkit-transition: opacity .25s ease .1s;
 -moz-transition: opacity .25s ease .1s;
 -o-transition: opacity .25s ease .1s;
 -ms-transition: opacity .25s ease .1s;
 transition: opacity .25s ease .1s;
}
.navi li:hover ul{
 position:absolute;
 right:0;
}
.navi li:hover ul { 
 opacity: 1; 
 -webkit-border-radius: 0 0 5px 5px;
 -moz-border-radius: 0 0 5px 5px;
 border-radius: 0 0 5px 5px;
}
.navi li ul li { 
 float: none; 
 position: static;
 height: 0; 
 line-height: 0;
 background: none;
  
  -webkit-transition: height .25s ease .1s;
 -moz-transition: height .25s ease .1s;
 -o-transition: height .25s ease .1s;
 -ms-transition: height .25s ease .1s;
 transition: height .25s ease .1s;
}
.navi li:hover  ul li {
 border-bottom:1px dotted #006633;
 height:42px;
}
.navi li:hover ul li:last-child{
 border-bottom:0;
 margin-bottom:10px;
}
.navi li ul li a { 
 margin:0;
 text-align:center;
 background: #0066cc; 
 padding:10px 20px;
 line-height:22px;
 border:0;
 color:#FFF;
 
}
.navi li ul li a:hover {
 background: #0099ff; 
}
</style>​ 
 

이 질문에 댓글 쓰기 :

답변 1

 

ie8이나 ie9에서 지원되지 않는 trasition 이나 radius 속성은 단순히 모양만 변경하는 것으로 구조에는 아무런 영향을 끼치지 않으니 상관이 없겠구요..

 

소스를 보니 29라인에 li에 float를 선언하시고 clear을 안해주셨네요.

 
.navi:after{visibility:hidden;content:"";display:block;clear:both}
 

를 추가 해주세요. 

 

그리고 .navi li:last-child 과 같은 자식 선택자를 사용하셨는데 

last-child 속성은 ie8에서는 지원이 되지 않습니다. last-child속성을 쓰고도 ie8에서 정상적으로 나온다면 그게 이상한 겁니다.

 

Note: The :last-child selector is not supported in IE8 and earlier versions.

 

 

 

 

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

회원로그인

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