<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <title>42度空间-在css中绘制三角形-右上直角的等腰直角三角形演示</title>
    <style>
        .triangle-top-right {
            width: 0;
            height: 0;
            border-top: 100px solid red;
            border-left: 100px solid transparent;
        }
    </style>
</head>
<body>
<div class="triangle-top-right"></div>
</body>
</html>