在行边距上的线可以通过

1 div,表格等的border属性实现

2 <hr/>实现

3 通过背景图片实现

4 页面内写入横线图片 通过相对定位实现

5 通过css伪类实现

 <style>
        h2{text-align: center;}
        h2::before, h2::after {
            color: #c80;
            content: "——————";
            font-size: 24px;
            margin: 10px;
        }
    </style>

 

相关文章:

  • 2021-12-17
  • 2021-10-20
  • 2021-07-02
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2021-09-29
  • 2021-06-05
猜你喜欢
  • 2021-04-25
  • 2021-08-20
  • 2021-09-02
  • 2021-06-08
  • 2021-11-24
  • 2021-11-27
  • 2021-07-23
相关资源
相似解决方案