<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>旗子</title>
<style>
.flag{ 300;
height:1000px;
border-left:5px solid black;
display:inline-block;
margin-left:30px;
padding: 0px;
background-clip:border-box;
outline: 6px solid black;
}
.flag1{ 0;
height:0;
border-top:100px solid transparent;
border-right:100px solid transparent;
border-bottom:100px solid transparent;
border-left:400px solid red;
display:inline-block;
margin: 0px;
padding: 0px;
vertical-align: top }
</style>
</head>
<body>
<div class="flag">
</div>
<div class="flag1">
</div>
</body>
</html>