Blogger Information
Blog 64
fans 6
comment 2
visits 83036
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
CSS层叠样式表 基础知识
王娇
Original
609 people have browsed it

演示链接

http://xuanransoftware.com/phpStudy/0405/

学习总结

  • css就是加在html文档上的样式文件,让网页看起来更加的美观
  • 可以给单个网页加载样式文件,也可以用一个样式文件给多个网页加载样式

    效果图

  • css示例代码

  1. body {
  2. font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  3. align-items: center;
  4. }
  5. form {
  6. padding: 20px;
  7. box-shadow: 0 0 8px #888;
  8. border-radius: 10px;
  9. margin: auto;
  10. background-color: lightskyblue;
  11. display: grid;
  12. gap: 15px;
  13. }
  14. form fieldset {
  15. align-items: center;
  16. }
  17. h2 {
  18. color: forestgreen;
  19. }
  20. .nav {
  21. font-size: large;
  22. font-weight: bold;
  23. align-items: center;
  24. display: flex;
  25. height: 50px;
  26. background-color: white;
  27. }
  28. .nav ul {
  29. display: flex;
  30. list-style: none;
  31. }
  32. .nav ul a {
  33. color: blue;
  34. text-decoration: none;
  35. padding: 0 15px;
  36. }
  37. button {
  38. height: 30px;
  39. width: 100;
  40. border: none;
  41. outline: none;
  42. background-color: lightseagreen;
  43. color: white;
  44. }
  45. button:hover {
  46. background-color: lightsalmon;
  47. cursor: pointer;
  48. }
  49. #asideH {
  50. font-size: large;
  51. font-weight: bold;
  52. font-family: Verdana, Geneva, Tahoma, sans-serif;
  53. color: yellowgreen;
  54. }
  55. .asideC {
  56. font-size: small;
  57. }
Correcting teacher:天蓬老师天蓬老师

Correction status:qualified

Teacher's comments:真用心, 这个网站后台看上去像那么回事了
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post