common.css 534 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* 公共的样式 */
  2. * {
  3. margin: 0;
  4. padding: 0;
  5. box-sizing: border-box;
  6. }
  7. html, body {
  8. height: 100%;
  9. background-image: url(../image/cat.jpg);
  10. background-repeat: no-repeat;
  11. background-position: center;
  12. background-size: cover;
  13. }
  14. .nav {
  15. height: 50px;
  16. background-color: rgb(50, 50, 50);
  17. color: white;
  18. line-height: 50px;
  19. padding-left: 20px;
  20. }
  21. .container {
  22. width: 100%;
  23. height: calc(100% - 50px);
  24. display: flex;
  25. align-items: center;
  26. justify-content: center;
  27. }