用CSS画一个三角形
<style>
div {
width: 0;
height: 0;
border-top: 100px solid red;
<!-- 边框的均匀分布 -->
border-left: 100px solid transparent;
border-bottom: 100px solid transparent;
border-right: 100px solid transparent;
}
</style>
<body>
<div></div>
</body>
本文来自博客园,作者:RHCHIK,转载请注明原文链接:https://www.cnblogs.com/suihung/p/16242014.html