tag.css 416 B

123456789101112131415161718192021222324
  1. .tag-cloud {
  2. padding: 20px;
  3. }
  4. .tag-cloud .tag {
  5. display: inline-block;
  6. text-decoration: none;
  7. padding: 5px 10px;
  8. margin: 5px;
  9. border-radius: 5px;
  10. cursor: pointer;
  11. background-color: #fefefe;
  12. transition: color 0.3s ease;
  13. }
  14. .tag-cloud a.selected {
  15. font-size: 24px;
  16. font-weight: bold;
  17. background-color: #e0e0e0;
  18. }
  19. .tag:hover {
  20. transform: scale(2.0); /* 悬停时放大 */
  21. }