<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>实例1</title>
<style type="text/css">
li{
list-style: none;
float: left;
width: 80px;
line-height: 40px;
background: rgba(242,123,5,0.6);
border-radius: 6px;
font-size: 9px;
margin-left: 3px;
}
li a{
text-decoration: none;
color:#fff;
text-align: center;
display: block;
height: 40px;
}
li a:hover{
background: rgb(0,0,0.2);
border-radius: 6px;
transform: translate(4px,8px);/*向左右平移*/
/*transform: scale(1.5);*//*放大为原来的1.5倍;*/
/*-webkit-transform: translate(4px,8px);*/
/*设置a元素在鼠标移入时向左下角倾斜*/
transform:skew(40deg,-20deg);
-webkit-transform: skew(40deg,-20deg);
-moz-transform: skew(40deg,-20deg);
-o-transform:skew(40deg,-20deg)
}
</style>
</head>
<body>
<ul>
<li><a href="#">服装城</a></li>
<li><a href="#">美妆城</a></li>
<li><a href="#">超市城</a></li>
<li><a href="#">全球购城</a></li>
<li><a href="#">闪购城</a></li>
<li><a href="#">服装城</a></li>
<li><a href="#">服装城</a></li>
<li><a href="#">服装城</a></li>
</ul>
</body>
</html>
实现导航栏旋转功能