div+css实现简洁的引用布局效果代码

代码语言:html

所属分类:布局界面

代码描述:div+css实现简洁的引用布局效果代码

代码标签: div css 简洁 引用 布局

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

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

<head>
  <meta charset="UTF-8">

<link href="https://fonts.googleapis.com/css2?family=Comic+Neue&display=swap" rel="stylesheet">
  
  
  
<style>
@charset "UTF-8";
body {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: helvetica;
  height: 100vh;
  overflow: hidden;
}

.card {
  background-color: #eee;
  padding: 50px;
  padding-left: 70px;
  border-radius: 5px;
  width: 400px;
  border-left: 7px solid #F22300;
  box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
}
.card::before {
  content: "“";
  position: absolute;
  top: 10px;
  left: 15px;
  color: silver;
  font-size: 150px;
  font-family: helvetica;
}

quote {
  font-size: 28px;
  font-family: "Comic Neue", cursive;
  color: #333;
}

author {
  font-weight: bold;
  color: dimgray;
  align-self: flex-end;
  text-transform: uppercase;
}

.triangle-1,
.triangle-2,
.triangle-3,
.triangle-4,
.triangle-5,
.triangle-6,
.triangle-7,
.triangle-9 {
  width: 400px;
  height: 400px;
  position: fixed;
}

.triangle-1 {
  background-color: #F22300;
  top: -100px;
  right: 0;
  transform: translate(50%, -50%) rotateZ(35deg);
  z-index: -1;
}

.triangle-2 {
  background-color: #AA1A04;
  top: -98px;
  right: 0;
  transform: translate(50%, -50%) rotateZ(29deg);
  z-index: -2;
}

.triangle-3 {
  width: 600px;
  background-color: #C41A00;
  top: -80px;
  right: 0;
  transform: translate(50%, -50%) rotateZ(24deg);
  z-index: -3;
}

.triangle-4 {
  width: 610px;
  background-color: #810D00;
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0