20_复习.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <title>Document</title>
  8. <style>
  9. #div1{
  10. }
  11. p{
  12. }
  13. .aa{
  14. }
  15. #ul1 li{
  16. }
  17. /* 子代 */
  18. #ul1 > li{
  19. }
  20. a:hover{
  21. }
  22. *{
  23. }
  24. /* style > id >class > 标签 */
  25. /* 基础样式 */
  26. div{
  27. width:200px;
  28. height:200px;
  29. background: red url(xx.jpg) no-repeat 0 0;
  30. /* 字体 */
  31. font-size: 16px;
  32. font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  33. font-weight: 400;
  34. font-style: italic;
  35. color:green;
  36. /* 文本 */
  37. /* 1水平对齐 */
  38. text-align: left;
  39. height: 50px;
  40. /* 2单行文本垂直对齐 */
  41. line-height:50px ;
  42. /* 文本修饰 underline none line-through */
  43. text-decoration: none;
  44. }
  45. ul{
  46. list-style: none;
  47. }
  48. /* display */
  49. /* display:
  50. inline 行级元素 多个占一行 不能设置宽高
  51. span a strong i
  52. block 块级元素 自己占一行 可以设置宽高
  53. div p ul li h1-h6
  54. inline-block 行级块元素 多个占一行 可以设置宽高
  55. none 隐藏
  56. */
  57. /* 浮动 */
  58. /* float:left |right |none */
  59. /* 盒模型 */
  60. </style>
  61. </head>
  62. <body>
  63. </body>
  64. </html>