.border{
background-image:linear-gradient(180deg, #F73125, #F73125 47%, transparent 50%),
linear-gradient(270deg, #F73125, #F73125 49%, transparent 50%),
linear-gradient(0deg, #F73125, #F73125 50%, transparent 50%),
linear-gradient(90deg, #F73125, #F73125 50%, transparent 50%);
background-size: 100% 1px,1px 100% ,100% 1px, 1px 100%;
background-repeat: no-repeat;
background-position: top, right top, bottom, left top;
}
移动端实现四条边框1px粗线
最新推荐文章于 2021-10-23 14:34:14 发布