syntax2.css 584 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. .box1 .box2 {
  2. color: red;
  3. }
  4. .box1 > .box3 {
  5. color: red;
  6. }
  7. .box1 > .box3:hover {
  8. color: blue;
  9. }
  10. .box1:hover {
  11. color: orange;
  12. }
  13. div .box1 {
  14. width: 100px;
  15. }
  16. .p1,
  17. .p2 {
  18. width: 100px;
  19. height: 200px;
  20. }
  21. .p2 {
  22. color: blue;
  23. }
  24. .p3 {
  25. width: 100px;
  26. height: 200px;
  27. }
  28. .p5 {
  29. width: 100px;
  30. height: 100px;
  31. background-color: #bfa;
  32. }
  33. div {
  34. width: 300px;
  35. height: 200px;
  36. border: 1px solid red;
  37. }
  38. span {
  39. color: #ff8000;
  40. }
  41. html {
  42. width: 100%;
  43. height: 100%;
  44. }
  45. body {
  46. width: 100%;
  47. height: 100%;
  48. background-color: #bfa;
  49. }
  50. body:hover {
  51. background-color: #69ff44;
  52. }