动态计算尺寸

  1. .content-card {
  2. position: absolute;
  3. top: 175px;
  4. background: #ffffff;
  5. width: calc(100vw - 30px);;
  6. border-radius: 20px 20px 0px 0px;
  7. height: calc(100vh - 175px);
  8. }

横屏

image.png

竖屏

image.png