斜体菜单

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>

<style type="text/css">
* {
margin: 0;
padding: 0;
}

ul li {
float: left;
list-style: none;
100px;
height: 40px;
background-color: blue;
line-height: 40px;
text-align: center;
color: white;
font-size: 14px;
font-weight:bold;
-webkit-transform: skew(-20deg);
-moz-transform: skew(-20deg);
-o-transform: skew(-20deg);
-ms-transform: skew(-20deg);
transform: skew(-20deg);
}

ul li:HOVER {
background-color: gray;
cursor: pointer;
}

</style>
</head>
<body>

<ul>
<li>权限管理</li>
<li>报警记录</li>
<li>实时迁移</li>
<li>申请接入</li>
</ul>

</body>
</html>

原文地址:https://www.cnblogs.com/gstsyyb/p/5614638.html