We Recommend

CSS: The Definitive Guide CSS: The Definitive Guide
Provides you with a comprehensive guide to CSS implementation, along with a thorough review of all aspects of CSS 2.1. Updated to cover Internet Explorer 7, Microsoft's vastly improved browser, this new edition includes content on positioning, text wrapping (nowrap), lists and generated content, table layout, user interface, paged media, and more.


Posted By

weakish on 02/24/08


Tagged

wordpress


Versions (?)


eexpress's blog


Published in: CSS 


  1. /* 白底黑字的code */
  2.  
  3. code {
  4. background:#000000 none repeat scroll 0%;
  5. color:#FFFFFF;
  6. display:block;
  7. font-family:"Lucida Console","Courier New",Courier,monospace;
  8. font-size:1em;
  9. font-size-adjust:none;
  10. font-style:normal;
  11. font-variant:normal;
  12. font-weight:normal;
  13. line-height:1.5em;
  14. padding:0.5em;
  15. }
  16.  
  17. /* 标题变色 */
  18. #header a:hover {color: darkred;}
  19.  
  20. /* 加宽 */
  21.  
  22. #header {width:1100px;}
  23.  
  24. #menu {width:1100px;}
  25.  
  26. #main {width:1100px;}
  27.  
  28. #content {width:840px;}
  29.  
  30. #footer {width:1100px;}

Report this snippet 

You need to login to post a comment.