2012-04-07 4 views
0

어제 www.css3pie.com에서 IE8에서 작동하는 상자 그림자 및 테두리 반경을 얻는 방법을 찾았습니다. 지금까지, 그것은 밖으로 도왔지만 내 머리가 dev 에의 마지막 부분에 대한 작동하지 않습니다 알아 내려고 노력하고 있습니다 ... 상단에있는 두 개의 탭. 그라디언트는 비활성 상태에서 나타나지만 'current'클래스가 적용될 때 변경되지 않습니다. href도 예상되는 방식을 변경하고 있습니다. CSS의 PIE는 당신이 할 수있는 IE의 그라디언트를 처리 할 것입니다 때문에CSS3 PIE, IE8 및 border-radius

<div class="nav1"> 
     <ul> 
     <li <?php if ($thisPage=="Contact Us") echo "class=\"current\""; ?>><a href="/contact.php">Contact Us</a></li> 
     <li <?php if ($thisPage=="Visit Us") echo "class=\"current\""; ?>><a href="/visit-us.php">Visit Us</a></li> 
     </ul> 
     </div> 

하고 너무 같은 스타일되고있다 ...

.nav1 ul { 
margin:0px; 
padding:0px; 
list-style:none; 
} 
.nav1 ul li { 
position: relative; 
font-size:12px; 
float:left; 
margin-right:5px; 
border: 1px solid #999999; 
background-color: #fafafa; 
border-radius: 5px 5px 0px 0px; 
background: #f7f7f7; /* Old browsers */ 
background: -moz-linear-gradient(top, #f7f7f7 0%, #ccc9c9 100%); /* FF3.6+ */ 
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f7f7f7), color-stop(100%,#ccc9c9)); /* Chrome,Safari4+ */ 
background: -webkit-linear-gradient(top, #f7f7f7 0%,#ccc9c9 100%); /* Chrome10+,Safari5.1+ */ 
background: -o-linear-gradient(top, #f7f7f7 0%,#ccc9c9 100%); /* Opera 11.10+ */ 
background: -ms-linear-gradient(top, #f7f7f7 0%,#ccc9c9 100%); /* IE10+ */ 
background: linear-gradient(top, #f7f7f7 0%,#ccc9c9 100%); /* W3C */ 
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f7f7f7', endColorstr='#ccc9c9',GradientType=0); /* IE6-9 */ 
color:#868686; 
text-shadow: 1px 1px #fafafa; 
padding: 6px 30px; 
behavior: url(inc/PIE.htc); 
} 

li.current{ 
position: relative; 
border-radius: 5px 5px 0px 0px; 
background: #e0e0e0; /* Old browsers */ 
background: -moz-linear-gradient(top, #e0e0e0 0%, #bab8b8 100%); /* FF3.6+ */ 
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e0e0e0), color-stop(100%,#bab8b8)); /* Chrome,Safari4+ */ 
background: -webkit-linear-gradient(top, #e0e0e0 0%,#bab8b8 100%); /* Chrome10+,Safari5.1+ */ 
background: -o-linear-gradient(top, #e0e0e0 0%,#bab8b8 100%); /* Opera 11.10+ */ 
background: -ms-linear-gradient(top, #e0e0e0 0%,#bab8b8 100%); /* IE10+ */ 
background: linear-gradient(top, #e0e0e0 0%,#bab8b8 100%); /* W3C */ 
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e0e0e0', endColorstr='#bab8b8',GradientType=0); /* IE6-9 */ text-shadow: 1px 1px #fafafa; 
behavior: url(inc/PIE.htc); 

}

.nav1 ul li a{ 
font-size:14px; 
float:left; 
color:#868686; 
text-decoration:none; 
} 
.nav1 ul li a:hover{ 
color:#666666; 
font-size:14px; 
float:left; 
color:#000000; 
text-decoration:none; 
} 

.nav1 ul li.current a { 
    color: #000; 
} 

답변

0

: 다음 코드를 확인하세요 filter: 선언을 안전하게 제거하십시오. 그게 도움이 될거야.