css3 导航效果

<html>
<head>
<style type="text/css">
ul{
list-style:none;
border-left:1px solid grey;
padding:10px 0;
margin-left:auto;
margin-right:auto;
width:200px;
}

li#yuanjiao{
width:100px;
height:35px;
border:1px solid grey;
border-left:0px solid grey;
margin:6px 0px;
border-radius:0px 15px 15px 0px;
text-align:center;
line-height:35px;
-webkit-transition:width 0.5s linear,background-color 1s linear;
-moz-transition:width 0.2s linear,background-color 1s linear;
-o-transition:width 0.2s linear,background-color 1s linear;
-ms-transition: width 0.3s ease, background-color 1s ease;
transition: width 0.3s ease, background-color 1s ease;
}

li#yuanjiao:hover{
width:200px;
height:35px;
border:1px solid grey;
border-left:0px solid grey;
margin:5px 0px;
border-radius:0px 15px 15px 0px;
background-color:orange;
text-align:center;
}

</style>
</head>
<body>
<ul>
<li id="yuanjiao">W3CFuns</li>
<li id="yuanjiao">HTML5</li>
<li id="yuanjiao">CSS3</li>
<li id="yuanjiao">JavaScript</li>
<li id="yuanjiao">jQuery</li>
<li id="yuanjiao">XHTML+CSS</li>
<li id="yuanjiao">By weiyan</li>
</ul>
<script>
if(!-[1,]){
  alert("fuck");
}
</script>
</body>
</html>

posted on 2012-09-01 13:56  cbwcwy  阅读(560)  评论(0编辑  收藏  举报