在需要的标签中

div {
    
    border: 0;
    border-bottom: 10px solid transparent;
    border-image: url(../images/border-img.png) 10 10 round;
    border-image: url(./images/border-img.png) 10 round\0;
    position: relative;
    z-index: 1000;
    behavior: url(PIE.htc);
}

首先需要引入 PIE.htc 注意相对于html文件

需要兼容的属性的url 也是相对于html文件 如上border-image

注意:实现方式的原因,需要元素有定位,absolute或relative,和一定的层级

相关文章:

  • 2022-02-03
  • 2022-01-08
  • 2022-02-25
  • 2022-12-23
  • 2021-09-16
  • 2021-07-25
  • 2022-01-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
  • 2021-04-10
  • 2021-08-17
相关资源
相似解决方案