<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
div{
font-size: 30px;
font-weight: bold;
font-style: normal;
/* color: rgb(0, 255, 255); */
/* border: 10px solid black; */
/* border 的分解写法 */
border-width: 1px;
border-style: dashed;
border: 100px solid black;
width: 100px;
height: 100px;
border-left-color: red; /* 直接三角形可以换成透明色 transparent */
border-top-color: green; /* 直接三角形可以换成透明色 transparent */
border-right-color: brown;/* 直接三角形可以换成透明色 transparent */
}
</style>
</head>
<body>
<div>
举个例子
</div>
</body>
</html>
页面显示
image.png