使用transform: scaleX 会造成几个相连的子元素看起来是分隔的?

image.png
https://jsfiddle.net/cns53L7k/

<div style="width: 500px;background-color: black;height: 30px;transform: scaleX(0.5);position: relative;">
  <div style="left: 20px;width: 20px;height: 100%;position: absolute;top: 0;background-color: red;"></div>
  <div style="left: 40px;width: 1px;height: 100%;position: absolute;top: 0;background-color: red;"></div>
  <div style="left: 41px;width: 2px;height: 100%;position: absolute;top: 0;background-color: red;"></div>
  <div style="left: 43px;width: 2px;height: 100%;position: absolute;top: 0;background-color: red;"></div>
</div>

使用了transform: scaleX(0.5)在高清的屏幕下,相连的几个子元素div看起来会是有间隔的?

阅读 701
1 个回答
推荐问题