【发布时间】:2020-03-25 02:28:41
【问题描述】:
【问题讨论】:
-
发布的问题似乎根本不包括任何解决问题的尝试。 Stack Overflow 期待您 try to solve your own problem first,因为您的尝试有助于我们更好地了解您想要什么。请编辑问题以显示您尝试过的内容,以说明您在minimal reproducible example 中遇到的特定障碍。
【问题讨论】:
您需要为此使用剪辑路径。如果您正在寻找入门的地方,请尝试
<style>
.shapePoly {
clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 0%);
background-color: orange;
width: 100px;
height: 50px;
}
</style>
【讨论】: