视频:https://www.bilibili.com/video/BV1pE411q7FU?p=162

  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. margin: 0;
  11. padding: 0;
  12. }
  13. .one {
  14. border: 1px solid #dadcd9;
  15. width: 444px;
  16. height: 287px;
  17. }
  18. .two {
  19. border-bottom: 1px dashed #e9ece9;
  20. height: 52px;
  21. color: #a7a7a7;
  22. font-weight: 400;
  23. line-height: 52px;
  24. padding-left: 25px;
  25. }
  26. ul li {
  27. margin-left: 38px;
  28. list-style: none;
  29. margin: 15px 0 0 38px;
  30. }
  31. ul li a {
  32. color: #989998;
  33. }
  34. ul li a:hover {
  35. text-decoration: underline;
  36. }
  37. a {
  38. text-decoration: none;
  39. }
  40. </style>
  41. </head>
  42. <body>
  43. </body>
  44. <div class="one">
  45. <h3 class="two">品优购快报</h3>
  46. <ul>
  47. <li><a href="">【优惠】爆款耳机五折秒!</a></li>
  48. <li><a href="">【优惠】母亲节,健康好礼低至五折</a></li>
  49. <li><a href="">【优惠】爆款耳机五折秒!</a></li>
  50. <li><a href="">【优惠】9.9元洗100张照片!</a></li>
  51. <li><a href="">【优惠】长虹智能空调立省1000</a></li>
  52. </ul>
  53. </div>
  54. </html>

效果图
image.png

去掉li前面的点

list-style: none;