index.wxss 473 B

123456789101112131415161718192021222324252627282930
  1. .block-line>view {
  2. width: 50%;
  3. text-align: center;
  4. color: #fff;
  5. height: 200rpx;
  6. }
  7. .block-line:first-child>view:first-child {
  8. background: purple;
  9. }
  10. .block-line:first-child>view:last-child {
  11. background: red;
  12. }
  13. .block-line:last-child>view:first-child {
  14. background: blue;
  15. }
  16. .block-line:last-child>view:last-child {
  17. background: green;
  18. }
  19. .block-line>view>view:first-child {
  20. margin-top: 40rpx;
  21. margin-bottom: 30rpx;
  22. }
  23. .block-line>view>view:last-child {}