css-div 四角边框

 

效果如下:

css-div 四角边框

 

 

 

background: linear-gradient(to left, rgb(4, 172, 247), rgb(4, 172, 247)) left top no-repeat, 
 linear-gradient(to bottom, rgb(4, 172, 247), rgb(4, 172, 247)) left top no-repeat, 
 linear-gradient(to left, rgb(4, 172, 247), rgb(4, 172, 247)) right top no-repeat,
 linear-gradient(to bottom, rgb(4, 172, 247), rgb(4, 172, 247)) right top no-repeat, 
 linear-gradient(to left, rgb(4, 172, 247), rgb(4, 172, 247)) left bottom no-repeat,
 linear-gradient(to bottom, rgb(4, 172, 247), rgb(4, 172, 247)) left bottom no-repeat,
 linear-gradient(to left, rgb(4, 172, 247), rgb(4, 172, 247)) right bottom no-repeat,
 linear-gradient(to left, rgb(4, 172, 247), rgb(4, 172, 247)) right bottom no-repeat;
   /*设置大小*/
   background-size: 2px 80px, 80px 2px, 2px 80px, 80px 2px,1px 200px, 80px 5px, 1px 200px, 80px 5px;

 

相关文章:

  • 2021-12-04
  • 2021-11-30
  • 2021-12-04
  • 2021-11-20
  • 2021-11-30
  • 2022-01-30
  • 2021-09-25
猜你喜欢
  • 2021-09-25
  • 2021-12-14
  • 2021-11-11
  • 2021-11-20
相关资源
相似解决方案