移动端1px边框

  .solid{
      position: relative;
  }
  .solid:after{
      content: " ";
      width: 200%;
      height: 200%;
      position: absolute;
      top: 0;
      left: 0;
      border-radius: inherit;
      transform: scale(0.5);
      transform-origin: 0 0;
      pointer-events: none;
      box-sizing: border-box;
      border: 1px solid rgba(0, 0, 0, 0.1);
  }

你可能感兴趣的:(移动端1px边框)