1.字体加粗

  1. font-weight:bold; //默认加粗 尽量用这个
  2. font-weight:600;//数字有些手机没有兼容

2.计算高度或者宽度

  1. position: absolute;
  2. top: 16%;
  3. width: 80%;
  4. height: calc(100% - 400rpx); //在高度百分之百里减去某一部分固定高度
  5. color: #ffff;
  6. left: 10%; //根据宽度设置left值达到左右居中效果
  7. overflow-y:scroll; //开启纵向滚动条,如果开启滚动条,必须设置高度