部分设置并非最优化设置 有待后期学习并优化设置

  1. body{
  2. background-color: #f5f5f5;
  3. }
  4. .all{
  5. box-shadow: 2px 2px 10px 1px rgba(0, 0, 0, 0.2);
  6. width: 1000px;
  7. margin: 100px auto;
  8. border-radius: 10px;
  9. background-color: white;
  10. overflow: hidden;
  11. border-bottom: 1px solid rgba(100,149,237,.5);
  12. }
  13. /*标题*/
  14. .head{
  15. color: white;
  16. background-color: #6495ED;
  17. text-align: center;
  18. font-size: 20px;
  19. padding-top: 10px;
  20. padding-bottom: 10px;
  21. letter-spacing:8px
  22. }
  23. /*每一块部分*/
  24. .chence{
  25. white-space:nowrap;/*超出该div的文本不会换行*/
  26. position: relative;
  27. font-size: 20px;
  28. border-bottom: 1px solid rgba(100,149,237,1);
  29. /*设置内容分类标签的下边框线*/
  30. padding-top: 20px;
  31. padding-bottom: 30px;
  32. width:60%;
  33. left: 20px;
  34. }
  35. .chence-1{
  36. position: relative;
  37. font-size: 20px;
  38. margin-top: 20px;
  39. padding-top: 20px;
  40. padding-bottom: 30px;
  41. text-align: center;
  42. border-top: 1px solid black;
  43. }
  44. .xing{
  45. color: #6495ED;
  46. }
  47. .kuang{
  48. outline: none;/*当元素获得焦点的时候,焦点框为0.*/
  49. width: 75%;
  50. font-size: 20px;
  51. height: 40px;
  52. border-radius: 5px;
  53. border:1px solid rgba(0,0,0,0.2);
  54. transition: box-shadow .5s;/*给盒阴影添加过渡效果*/
  55. }
  56. .kuang:focus{
  57. box-shadow: 1px 1px 10px #6385d1, 1px 1px 10px #6385d1; /*盒子阴影效果设置*/
  58. }
  59. .kuang-1{
  60. outline: none;/*当元素获得焦点的时候,焦点框为0.*/
  61. width: 75%;
  62. font-size: 20px;
  63. height: 40px;
  64. border-radius: 5px;
  65. border:1px solid rgba(0,0,0,0.2);
  66. margin-left: 20px;
  67. transition: box-shadow .5s;/*添加效果*/
  68. }
  69. .kuang-1:focus{
  70. box-shadow: 1px 1px 10px #6385d1, 1px 1px 10px #6385d1; /*盒子阴影效果设置*/
  71. }
  72. .kuang-2{
  73. outline: none;/*当元素获得焦点的时候,焦点框为0.*/
  74. width: 75%;
  75. font-size: 20px;
  76. height: 40px;
  77. border-radius: 5px;
  78. border:1px solid rgba(0,0,0,0.2);
  79. margin-left: 40px;
  80. transition: box-shadow .5s;/*添加效果*/
  81. }
  82. .kuang-2:focus{
  83. box-shadow: 1px 1px 10px #6385d1, 1px 1px 10px #6385d1; /*盒子阴影效果设置*/
  84. }
  85. label{
  86. font-weight:bold;/*定义粗体字符*/
  87. cursor: pointer;
  88. }
  89. .cu{
  90. font-weight:normal;/*默认值。定义标准的字符*/
  91. letter-spacing:8px;/*文本字间距设置*/
  92. cursor: pointer;/*手标志*/
  93. }
  94. button{
  95. width: 130px;
  96. height: 30px;
  97. background-color: #6495ED;
  98. color: white;
  99. border-radius: 3px;/*圆角设置*/
  100. margin-left: 10px;
  101. border: none;
  102. cursor: pointer;/*手*/
  103. }