HTML教程,HTML默认样式


  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.  
  33. h5              { font-size: .83em; margin: 1.5em 0 } 
  34. h6              { font-size: .75em; margin: 1.67em 0 } 
  35. h1, h2, h3, h4,
  36. h5, h6, b,
  37. strong          { font-weight: bolder } 
  38. blockquote      { margin-left: 40px; margin-right: 40px } 
  39. i, cite, em,
  40. var, address    { font-style: italic } 
  41. pre, tt, code,
  42. kbd, samp       { font-family: monospace } 
  43. pre             { white-space: pre } 
  44. button, textarea,
  45. input, object
  46. select          { display:inline-block; } 
  47. big             { font-size: 1.17em } 
  48. small, sub, sup { font-size: .83em } 
  49. sub             { vertical-align: sub } 
  50. sup             { vertical-align: super } 
  51. table           { border-spacing: 2px; } 
  52. thead, tbody,
  53. tfoot           { vertical-align: middle } 
  54. td, th          { vertical-align: inherit } 
  55. s, strike, del  { text-decoration: line-through } 
  56. hr              { border: 1px inset } 
  57. ol, ul, dir,
  58. menu, dd        { margin-left: 40px } 
  59. ol              { list-style-type: decimal } 
  60. ol ul, ul ol,
  61. ul ul, ol ol    { margin-top: 0; margin-bottom: 0 } 
  62. u, ins          { text-decoration: underline } 
  63. br:before       { content: "\A" } 
  64. :before, :after { white-space: pre-line } 
  65.  
  66. center          { text-align: center } 
  67. abbr, acronym   { font-variant: small-caps; letter-spacing: 0.1em } 
  68. :link, :visited { text-decoration: underline } 
  69. :focus          { outline: thin dotted invert } 
  70.  
  71. /* Begin bidirectionality settings (do not change) */
  72. BDO[DIR="ltr"]  { direction: ltr; unicode-bidi: bidi-override } 
  73. BDO[DIR="rtl"]  { direction: rtl; unicode-bidi: bidi-override } 
  74.  
  75. *[DIR="ltr"]    { direction: ltr; unicode-bidi: embed } 
  76. *[DIR="rtl"]    { direction: rtl; unicode-bidi: embed } 
  77.  
  78. @media print { 
  79.   h1            { page-break-before: always } 
  80.   h1, h2, h3,
  81.   h4, h5, h6    { page-break-after: avoid } 
  82.   ul, ol, dl    { page-break-before: avoid }

« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3