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=Petit+Formal+Script&family=Raleway:wght@500&display=swap" rel="stylesheet">
  

<style>
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #fefefe;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  background: #03abd9;
}

.testimonial {
  width: 50%;
  background: #0385be;
  padding: 4em;
  display: flex;
  flex-direction: column;
  border: 5px solid #fefefe;
  border-top: none;
  border-bottom: none;
  position: relative;
}
.testimonial:before, .testimonial:after {
  content: "";
  position: absolute;
  width: 50px;
  height: 36px;
  background-repeat: no-repeat;
}
.testimonial:before {
  top: -10px;
  right: 10%;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 141.5 101"><path fill="white" d="m80.817.554c.458-.025.805-.06,1.152-.06,19.188-.003,38.376-.002,57.564-.002.146,0,.291..........完整代码请登录后点击上方下载按钮下载查看

网友评论0