<div class="square">Origin</div>
<div class="square skew-1">skew()</div>
<div class="square skew-2">skew()</div>
<div class="square skew-3">skew()</div>
<div class="square skew-4">skew()</div>

<div style="margin-top: 50px">第四个 skew 元素不见了hhhh变成一条没有宽度的线了
</div>
.square {
  height: 100px;
  width: 100px;
  background-color: red;
  margin-left: 20px;
  margin-top: 20px;
  display: inline-block;
}

.skew-1 {
  transform: skew(30deg, 0)
}

.skew-2 {
  transform: skew(0, 30deg)
}

.skew-3 {
  transform: skew(30deg, 30deg)
}

.skew-4 {
  transform: skew(45deg, 45deg)
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.