div+css实现白色透明边框效果代码

代码语言:html

所属分类:布局界面

代码描述:div+css实现白色透明边框效果代码

代码标签: div css 白色 透明 边框

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">


  <link rel='stylesheet' href='https://fonts.googleapis.com/css2?family=Marcellus&amp;display=swap'>
  
<style>
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
  background: url(//repo.bfw.wiki/bfwrepo/image/6375c08016c8b.png) center center no-repeat;
  background-size: cover;
  font-family: "Marcellus", serif;
  color: #fff;
}

.list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  align-items: stretch;
}

.item {
  position: relative;
  width: 380px;
  padding: 30px;
  border-left: 5px solid #fff;
  border-bottom: 5px solid #fff;
  border-right: 5px solid #fff;
  border-radius: 0 0 15px 15px;
}

.heading {
  display: flex;
  position: absolute;
  align-items: flex-end;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 35px;
  transform: translateY(-100%);
}
.heading::before {
  content: "";
  flex: 1;
  height: 15px;
  marg.........完整代码请登录后点击上方下载按钮下载查看

网友评论0