1像素问题

经常会遇到在iOS手机上写

border-bottom: 1px solid #eaeaea;

会显得这一像素特别的粗。

所以后来采用这么一个方式来代替:

.underline {
  width: 100%;
  height: 1px;
  background: #eaeaea;
  transform: scaleY(0.5);
}

猜你喜欢

转载自blog.csdn.net/u014085502/article/details/84767634