Blogger Information
Blog 55
fans 0
comment 0
visits 59024
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
背景色变色
南鸢离梦的博客
Original
597 people have browsed it
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <style type="text/css">
  5. li a:hover {
  6. background-color:#000;
  7. display: block;
  8. }
  9. #text a:hover{
  10. background-color:#ff0000;
  11. display:inline;
  12. }
  13. </style>
  14. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  15. <title>改变li的背景色</title>
  16. </head>
  17. <body>
  18. <div>
  19. <ul>
  20. <li><a href="#">整个li的背景色都变了</a></li>
  21. <li id="text"><a href="#">只有文字的背景都变了</a></li>
  22. </ul>
  23. </div>
  24. </body>
  25. </html>
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