为什么翻译元素50%,使渲染不正确?翻译50%在Chrome中无法使用宽度1px
在Firefox正在工作。
笔自我解释了所有:
http://codepen.io/rdsedmundo/pen/wWNqKw
.line {
width: 1px;
height: 30px;
background-color: red;
margin-bottom: 10px;
}
.translate50 {
transform: translateX(50%);
}