首页 > 编程 > HTML > 正文

HTML教程,HTML默认样式

2024-08-26 00:14:23
字体:
来源:转载
供稿:网友
  1. html, address,
  2. blockquote,
  3. body, dd, div,
  4. dl, dt, fieldset, form,
  5. frame, frameset,
  6. h1, h2, h3, h4,
  7. h5, h6, noframes,
  8. ol, p, ul, center,
  9. dir, hr, menu, pre { display: block }
  10. li { display: list-item }
  11. head { display: none }
  12. table { display: table }
  13. tr { display: table-row }
  14. thead { display: table-header-group }
  15. tbody { display: table-row-group }
  16. tfoot { display: table-footer-group }
  17. col { display: table-column }
  18. colgroup { display: table-column-group }
  19. td, th { display: table-cell; }
  20. caption { display: table-caption }
  21. th { font-weight: bolder; text-align: center }
  22. caption { text-align: center }
  23. body { margin: 8px; line-height: 1.12 }
  24. h1 { font-size: 2em; margin: .67em 0 }
  25. h2 { font-size: 1.5em; margin: .75em 0 }
  26. h3 { font-size: 1.17em; margin: .83em 0 }
  27. h4, p,
  28. blockquote, ul,
  29. fieldset, form,
  30. ol, dl, dir,
  31. menu { margin: 1.12em 0 }
  32. h5 { font-size: .83em; margin: 1.5em 0 }
  33. h6 { font-size: .75em; margin: 1.67em 0 }
  34. h1, h2, h3, h4,
  35. h5, h6, b,
  36. strong { font-weight: bolder }
  37. blockquote { margin-left: 40px; margin-right: 40px }
  38. i, cite, em,
  39. var, address { font-style: italic }
  40. pre, tt, code,
  41. kbd, samp { font-family: monospace }
  42. pre { white-space: pre }
  43. button, textarea,
  44. input, object,
  45. select { display:inline-block; }
  46. big { font-size: 1.17em }
  47. small, sub, sup { font-size: .83em }
  48. sub { vertical-align: sub }
  49. sup { vertical-align: super }
  50. table { border-spacing: 2px; }
  51. thead, tbody,
  52. tfoot { vertical-align: middle }
  53. td, th { vertical-align: inherit }
  54. s, strike, del { text-decoration: line-through }
  55. hr { border: 1px inset }
  56. ol, ul, dir,
  57. menu, dd { margin-left: 40px }
  58. ol { list-style-type: decimal }

共2页上一页12下一页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表