在HTML中,可以使用CSS的transform属性来实现图形的旋转。如果要将一个矩形旋转45度,可以这样写:,,``html,,,,, .rotate {, transform: rotate(45deg);, width: 100px;, height: 50px;, ……