The transform property allows you to modify the shape, position, and size of an element without changing the layout or affecting the surrounding elements. It has functions such as translate(), rotate(), scale(), skew(), and matrix().

如:transform: rotate(-45deg);


css做一个三角形:

.cat-right-ear {
  border-right: 35px solid transparent;
  border-left: 35px solid transparent;
  border-bottom: 70px solid #5e5e5e;
}
最后编辑:2023年10月15日 ©著作权归作者所有

发表评论