<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
.slopingside {
height: 0px;
border: 1px solid red;
width: 45px;
transform: rotate(125deg);
-o-transform: rotate(125deg);
-moz-transform: rotate(125deg);
-webkit-transform: rotate(125deg);
}
.linear {
height: 0px;
border: 1px solid red;
margin-left: 30px;
margin-top: -10px;
}
</style>
</head>
<body>
<div class="slopingside"></div>
</body>
</html>
css画一个斜线
最新推荐文章于 2024-07-12 10:52:52 发布