9_基础样式2.html 842 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. /* 去掉列表样式 */
  10. ul{
  11. list-style: none;
  12. }
  13. a{
  14. /* 文本装饰 underline下划线|none无|line-through中划线 */
  15. text-decoration: none;
  16. /* 鼠标 形状 */
  17. /* cursor: pointer; */
  18. color:red;
  19. }
  20. span{
  21. cursor: pointer;
  22. }
  23. </style>
  24. </head>
  25. <body>
  26. <!-- 背景 字体 文本 -->
  27. <ul>
  28. <li>111</li>
  29. <li>222</li>
  30. <li>333</li>
  31. </ul>
  32. <a href="#">Baidu</a>
  33. <span>你好呀</span>
  34. </body>
  35. </html>