CSS3模拟apple苹果官方网站导航


<!DOCTYPE html>
<html>
<head>
<meta charset="gbk" />
<style type="text/css">
body { font-family:Arial; font-size:12px; color:#4b4b4b; text-align:center; }
* { padding:0px; margin:0px; }
ul { list-style:none; }
#nav { position:relative; margin-left:auto; margin-right:auto; text-align:left; width:960px; height:38px; margin-

top:15px; overflow:hidden;
border:0px;
border-radius:5px;
-moz-border-radius:5px;
-webkit-border-radius:5px;
-o-border-radius:5px;
box-shadow: inset 0 0 1px #fff;
-moz-box-shadow: inset 0 0 1px #fff;
-webkit-box-shadow: inset 0 0 1px #fff;
background:#c2c2c2;
background:-moz-linear-gradient(center top, rgba(100,100,100,1), rgba(113,113,113,0.9) 49%, rgba(90,90,90,0.9) 50%, 

rgba(116,116,116,1));
background:-webkit-gradient(linear, center top, center bottom, from(rgba(100,100,100,1)), color-stop(49%,rgba

(113,113,113,0.9)), color-stop(50%,rgba(90,90,90,0.9)), to(rgba(116,116,116,1)));
background:-o-linear-gradient(top, rgba(100,100,100,1), rgba(113,113,113,0.9) 49%, rgba(90,90,90,0.9) 50%, rgba

(116,116,116,1));
}
#nav li { display:block; color:#ffffff; width:100px; height:36px; text-align:center; border-right:solid 1px #5b5b5b; 

float:left; padding-top:8px; }
#nav li a { text-shadow:#000 1px 1px 1px; color:#ffffff; font-size:13px; text-decoration:none;
font-family:"Lucida Sans Unicode"; vertical-align:middle;
-webkit-transition:-webkit-transform 0.6s linear, color 0.3s linear, text-shadow 0.4s linear;
-moz-transition:-moz-transform 0.6s linear, color 0.3s linear, text-shadow 0.4s linear;
-o-transition:-o-transform 0.6s linear, color 0.3s linear, text-shadow 0.4s linear;
}
#nav li a:hover {
-webkit-transform:scale(1.5,1);
-moz-transform:scale(1.5,1);
-o-transform:scale(1.5,1);
color:darkred;
text-shadow:#111111 2px 2px 2px;
}
#nav input { display:block; width:120px; float:left; margin-top:8px; background:transparent; height:20px; margin-

left:15px;
vertical-align:middle; font-family:"sans-serif"; font-size:14px; text-indent:26px;
border:0px;
border-bottom:inset 1px #353535;
border-radius:8px;
-moz-border-radius:8px;
-webkit-border-radius:8px;
-o-border-radius:8px;
box-shadow:inset 0px 2px 1px #353535;
-moz-box-shadow:inset 0px 2px 1px #353535;
-webkit-box-shadow:inset 0px 2px 1px #353535;
background:url(http://www.webjx.com/files/120703/1_014000.png) no-repeat bottom left;
}
</style>
<title>CSS3模拟apple苹果官方网站导航</title>
</head>
<body>
<div id="nav">
<ul>
<li><a href="http://www.webjx.com">Index</a></li>
<li><a href="http://www.webjx.com/">Store</a></li>
<li><a href="http://www.webjx.com/">Mac</a></li>
<li><a href="http://www.webjx.com/">iPod</a></li>
<li><a href="http://www.webjx.com/">iPhone</a></li>
<li><a href="http://www.webjx.com/">iPad</a></li>
<li><a href="http://www.webjx.com/">iTunes</a></li>
<li><a href="http://www.webjx.com/">Support</a></li>
</ul>
<input type="text" id="kw" value='' />
</div>
</body>
</html>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值