"/>

css实现四角边框效果-kb88凯时官网登录

时间:2024-10-14
阅读:
免费资源网,https://freexyz.cn/

css实现四角边框

css实现四角边框效果

 html:

   

vue2:

  photo: [
        require("@/assets/img/bigscreen/two.jpg"),
        require("@/assets/img/bigscreen/four.png"),
        require("@/assets/img/bigscreen/five.jpg"),
        require("@/assets/img/bigscreen/ten.jpg"),
      ],

css:

.boxleft {
  background: linear-gradient(to left, #04c886, #04c886) left top no-repeat,
        linear-gradient(to bottom, #04c886, #04c886) left top no-repeat,
        linear-gradient(to left, #04c886, #04c886) right top no-repeat,
        linear-gradient(to bottom, #04c886, #04c886) right top no-repeat,
        linear-gradient(to left, #04c886, #04c886) left bottom no-repeat,
        linear-gradient(to bottom, #04c886, #04c886) left bottom no-repeat,
        linear-gradient(to left, #04c886, #04c886) right bottom no-repeat,
        linear-gradient(to left, #04c886, #04c886) right bottom no-repeat;
    background-size: 2px 10px, 10px 2px, 2px 10px, 10px 2px;
  img {
    width: 100%;
    height: 100%;
    padding: 4px;
    border: 2px solid #7fb1c580;
  } 
}
免费资源网,https://freexyz.cn/
返回顶部
顶部
网站地图