在需要的標簽中
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,和一定的層級