div+css实现简洁的引用布局效果代码
代码语言:html
所属分类:布局界面
代码描述: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,
.trian.........完整代码请登录后点击上方下载按钮下载查看
网友评论0