<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
div{
width: 0px;
height:0px;
/*边框线的宽度*/
/*border-width: 10px;*/
/*边框线的样式*/
/*border-style: dotted;*/
/*边框线的颜色*/
/*border-color: red;*/
/*复合写法:*/
/*border: 10px solid blue;*/
border-left: 100px solid red;
border-right:100px solid blue;
border-bottom: 200px solid palegreen;
border-top:200px solid blueviolet;
}
</style>
</head>
<body>
<div></div>
</body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<style>
div{
width: 0px;
height:0px;
/*边框线的宽度*/
/*border-width: 10px;*/
/*边框线的样式*/
/*border-style: dotted;*/
/*边框线的颜色*/
/*border-color: red;*/
/*复合写法:*/
/*border: 10px solid blue;*/
border-left: 100px solid red;
border-right:100px solid blue;
border-bottom: 200px solid palegreen;
border-top:200px solid blueviolet;
}
</style>
</head>
<body>
<div></div>
</body>
</html>