detail.css 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. .details {
  2. display: flex;
  3. flex-wrap: wrap;
  4. justify-content: space-between;
  5. align-items: flex-start;
  6. margin: 20px auto;
  7. padding: 20px;
  8. max-width: 1200px;
  9. border: 1px solid #ccc;
  10. border-radius: 8px;
  11. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  12. }
  13. .poster {
  14. flex: 1 1 30%;
  15. max-width: 30%;
  16. margin-bottom: 20px;
  17. }
  18. .poster img {
  19. width: 100%;
  20. height: auto;
  21. border-radius: 4px;
  22. }
  23. .tag-button {
  24. display: inline-block;
  25. text-align: center;
  26. text-decoration: none;
  27. background-color: #eee;
  28. margin: 2px;
  29. padding:5px 10px 5px 10px;
  30. color: #666;
  31. }
  32. .tag-button:hover {
  33. transform: scale(1.1);
  34. color: #ff4081;
  35. }
  36. .description {
  37. flex: 1 1 65%;
  38. max-width: 65%;
  39. }
  40. .button-wrapper {
  41. display: flex;
  42. justify-content: start;
  43. align-items: center;
  44. }
  45. .play-button {
  46. display: inline-block;
  47. margin-top: 20px;
  48. margin-right: 20px;
  49. padding: 10px 20px;
  50. background-color: #ff4081;
  51. color: white;
  52. text-align: center;
  53. text-decoration: none;
  54. border-radius: 4px;
  55. font-weight: bold;
  56. border: none;
  57. cursor: pointer;
  58. }
  59. /* 媒体查询:当屏幕宽度小于768px时(移动端) */
  60. @media (max-width: 768px) {
  61. .poster, .description {
  62. flex: 1 1 100%;
  63. max-width: 100%;
  64. margin-bottom: 20px;
  65. }
  66. .description {
  67. margin-bottom: 0;
  68. }
  69. .play-button {
  70. width: 90%;
  71. text-align: center;
  72. }
  73. }