案例1
.box{ width: 100px; height: 100px; border:10px solid #ddd; border-image: -webkit-linear-gradient(#ddd,#000) 30 30; border-image: -moz-linear-gradient(#ddd,#000) 30 30; border-image: linear-gradient(#ddd,#000) 30 30; }
案例2
.navbox{ border-right: 1px solid;
border-image: -webkit-linear-gradient(#00569D , white , #00569D)1 10 1; /* 控制边框颜色渐变 */
border-image: -moz-linear-gradient(#00569D , white , #00569D)1 10 1;
border-image: linear-gradient(#00569D , white , #00569D)1 10 1; /* 标准的必须写在最后 */
}
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/17335.html