优惠码标签
<!--
* @Author: hhn
* @Date: 2020-09-01 09:12:41
* @lastEditTime: Do not edit
* @Description: 各种标签样式
* @FilePath: \codehub\study\studying\html\tag.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>标签</title>
<link href="https://fonts.googleapis.com/css?family=Lato:400,400i|Roboto:500" rel="stylesheet">
<!-- 为 Internet Explorer 支持而添加的 shiv -->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
.coupon-con.temp {
background: linear-gradient(328deg, rgba(241, 74, 35, 1) 0, rgba(255, 144, 65, 1) 100%);
}
a {
display: inline-block;
margin-left: 14px;
margin-top: 6px;
font-size: inherit;
text-decoration: none;
cursor: pointer;
}
.coupon-con {
top: 4px;
right: 110px;
width: 155px;
height: 30px;
font-size: 12px;
line-height: 30px;
background: linear-gradient(87deg, rgba(248, 227, 181, 1) 0, rgba(218, 178, 116, 1) 100%);
border-radius: 2px 15px 2px 15px;
color: #463d2f;
align-items: center;
overflow: hidden;
text-align: center;
font-weight: bold;
}
.activity-con {
cursor: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAPVklEQVRoQ8WZd3gU1frHv2e276ZvNmWzSTYhjTSIQZp0c+PlClcRUAETQEHqDwtXqVGxAioiIHkoSkAU9CoJWCgXiYgkqBcTEqqkt03bbLaXmZ35PbMiP+UGzAbu8zvPM//MnPJ+3nPe85YhuM3GcRwBILVarf4lJcW+LpaESQSS/q2trUvVavVFmqZ32u2m5sTEVEP//v1NAMyEEOY2l70+nF+8z43juJBz587dd+zY0RGmLle6EPI4womDzCY71djQDDvTgeTEgZDKJQ4ioJsZWC6mDEj6d3ZWdnFgYGAJIcTd58WvDewTAMdxQrfbPf3dd99Z9mXR8Sgfcaji7v4PENpFQyAUQUAJQBEKda0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jc+RIom1pO4OWkaAQlx9dNzc8b079+/7r8GwE98srh4y77tOxZF+vp79EvTDJoNnYi/KxXjsvojIzkCAtzgcQkBSwQ4/dMvOH7kLKor6hGhDPaUVwQUhQZTt+uh2bPWT3nooVcJId4EWX9g7VV5XafTaY8cPry/6MO9Q5IjIsGy/E9twOpwwEjbIA9VYPbjE3FXmhZCSgjaTXti/j27D0Ng5hAgVUAiFHnSSaeLxuW2Fixe9vyP995771S5XN7QV+336gj9NjnHcUm79+w5mr92fVREaCjMdptHowFyhaficKWhCS4hi8BgH3S2GeEvlKNfeBjcHOspRbZ1d8NHKoWDobFmw9vnhw0bxt/75tsR3luAoJ07dxYcLiyaWHXxEgSEYPDYMS6Vv7/jmtkSiqIYIpF0cQ6Hik/I+D/2HEAaGhsll8vKxUQohDpW63zmuee2jxk3bsntCu8VAN/ZbDaHXLp06XGDwfAXl9PpqwoPX6Vvb6//TRCRSMSlpqa6zpSVSSTXXjIMQ8LCwoZUV1U9o42J4Y31eHJy8scBAQF8oHTb7X8BRfm5i39zS2YAAAAASUVORK5CYII=) 22 0, auto !important;
}
.activity-con:before {
content: "";
position: absolute;
left: -400px;
top: -400px;
width: 100px;
height: 0;
background-color: rgba(255, 255, 255, .3);
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
-o-transform: rotate(-45deg);
transform: rotate(-45deg);
/* -webkit-animation: searchLights 1s ease-in 1s infinite;
-o-animation: searchLights 1s ease-in 1s infinite; */
animation: searchLights 1.5s ease-in 1s infinite;
box-shadow: 0 0 10px 10px rgba(255, 255, 255, .3);
}
.coupon-con span:nth-of-type(1) {
color: #fff;
width: 53px;
background: #494238;
float: left;
}
.coupon-con.temp span:nth-of-type(2) {
color: #fff;
float: right;
width: 102px;
}
/* */
@-o-keyframes searchLights {
from {
left: -100px;
top: 0
}
to {
left: 100%;
top: 22px
}
}
@-moz-keyframes searchLights {
from {
left: -100px;
top: 0
}
to {
left: 100%;
top: 22px
}
}
@keyframes searchLights {
from {
left: -100px;
top: 0
}
to {
left: 100%;
top: 22px
}
}
@keyframes btnClick {
0% {
transform: scale(1)
}
50% {
transform: scale(.95)
}
100% {
transform: scale(1)
}
}
@keyframes moveIn {
from {
transform: scale(1) rotate(0)
}
to {
transform: scale(0) rotate(360deg);
right: 0;
margin-right: 0;
top: 30px;
display: none
}
}
@keyframes gift {
0% {
transform: rotate(0);
transition-timing-function: cubic-bezier(.215, .61, .355, 1)
}
10% {
transform: rotate(-12deg);
transition-timing-function: cubic-bezier(.215, .61, .355, 1)
}
20% {
transform: rotate(12deg);
transition-timing-function: cubic-bezier(.215, .61, .355, 1)
}
28% {
transform: rotate(-10deg);
transition-timing-function: cubic-bezier(.215, .61, .355, 1)
}
36% {
transform: rotate(10deg);
transition-timing-function: cubic-bezier(.755, .5, .855, .06)
}
42% {
transform: rotate(-8deg);
transition-timing-function: cubic-bezier(.755, .5, .855, .06)
}
48% {
transform: rotate(8deg);
transition-timing-function: cubic-bezier(.755, .5, .855, .06)
}
52% {
transform: rotate(-4deg);
transition-timing-function: cubic-bezier(.755, .5, .855, .06)
}
56% {
transform: rotate(4deg);
transition-timing-function: cubic-bezier(.755, .5, .855, .06)
}
60% {
transform: rotate(0);
transition-timing-function: cubic-bezier(.755, .5, .855, .06)
}
100% {
transform: rotate(0);
transition-timing-function: cubic-bezier(.215, .61, .355, 1)
}
}
</style>
</head>
<body>
<a class="activity-con coupon-con temp">
<span>7.5折</span>
<span>优惠码限时领取</span>
</a>
</body>
</html>
标签装饰
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>adorn 点缀</title>
<style>
body {
display: flex;
justify-content: space-around;
flex-wrap: wrap;
}
.card,
.card-head,
.card-body,
.card-boot {
position: relative;
}
.card-body {
width: 262px;
height: 147px;
color: #FFFFFF;
text-align: center;
overflow: hidden;
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.adorn {
position: absolute;
}
.course-periods {
/* 层级在card-border上 */
z-index: 2;
position: absolute;
display: block;
left: 0px;
top: 0px;
font-size: 10px;
color: #FFFFFF;
width: 50px;
height: 25px;
text-align: center;
line-height: 25px;
}
.course-periods:after {
z-index: -1;
content: '';
display: block;
position: absolute;
top: 0;
left: -10px;
width: 60px;
height: 25px;
transform: skewX(-15deg);
background: rgba(0, 0, 0, 0.3);
border-radius: 0 0 6px 0;
}
.card-body img.bg-cover {
position: absolute;
right: 0px;
top: 0px;
display: block;
width: 100%;
}
.card-body .card-border::after {
position: absolute;
top: 10px;
left: 10px;
right: 10px;
bottom: 10px;
z-index: 2;
display: inline-block;
border: 2px solid #fff;
content: "";
}
.card-body .title {
z-index: 1;
max-width: 170px;
max-height: 60px;
font-size: 20px;
font-weight: 700;
line-height: 1.5;
color: #fff;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
}
</style>
</head>
<body>
<div class="card">
<div class="card-head">
</div>
<div class="card-body">
<img class="bg-cover" src="./basic_doc.png" />
<div class="card-border"></div>
<span class="course-periods">50篇</span>
<div class="title">独在异乡<br>为异客</div>
</div>
<div class="card-boot">
</div>
</div>
<div class="card">
<div class="card-head">
</div>
<div class="card-body ">
<img class="bg-cover" src="./basic_feature.png" />
<span class="course-periods">50篇</span>
<div class="title">独在异乡<br>为异客</div>
</div>
<div class="card-boot">
</div>
</div>
<div class="card">
<div class="card-head">
</div>
<div class="card-body ">
<img class="bg-cover" src="./basic_pdf.png" />
<span class="course-periods">50篇</span>
<div class="title">独在异乡<br>为异客</div>
</div>
<div class="card-boot">
</div>
</div>
<div class="card">
<div class="card-head">
</div>
<div class="card-body ">
<img class="bg-cover" src="./basic_ppt.png" />
<span class="course-periods">50篇</span>
<div class="title">独在异乡<br>为异客</div>
</div>
<div class="card-boot">
</div>
</div>
<div class="card">
<div class="card-head">
</div>
<div class="card-body">
<img class="bg-cover" src="./basic_xls.png" />
<span class="course-periods">50篇</span>
<div class="title">独在异乡<br>为异客</div>
</div>
<div class="card-boot">
</div>
</div>
<div class="card">
<div class="card-head">
</div>
<div class="card-body ">
<img class="bg-cover" src="./ep_live.png" />
<span class="course-periods">50篇</span>
<div class="title" style="color:#4f26ef">独在异乡<br>为异客</div>
</div>
<div class="card-boot">
</div>
</div>
<div class="card">
<div class="card-head">
</div>
<div class="card-body ">
<img class="bg-cover" src="./5654.png" />
<div class="card-border"></div>
<span class="course-periods">50篇</span>
<div class="title">独在异乡<br>为异客</div>
</div>
<div class="card-boot">
</div>
</div>
</body>
</html>
图片:https://www.yuque.com/southerly/images/artboards/71945
badge 徽章 花朵
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>zhui-badge</title>
<style>
.zhui-badge {
font-family: STKaiti;
position: relative;
display: inline-block;
transform: scale(6);
}
.zhui-badge-wrapper {
position: absolute;
top: 5px;
right: 15px;
z-index: 1
}
.zhui-badge-content {
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
top: -11px;
left: 7px;
width: 16px;
height: 16px;
font-size: 12px;
background: #fecc11;
color: #fff;
border-radius: 50%;
-webkit-transform: scale(.8);
transform: scale(.8)
}
.zhui-badge-content,
.zhui-badge-leaf {
position: absolute;
display: -webkit-box;
display: -ms-flexbox;
display: flex
}
.zhui-badge-leaf {
top: -15px;
right: -15px
}
.zhui-badge-leaf,
.zhui-badge-leaf:after {
height: 12px;
width: 12px;
background: #fff;
border-radius: 2px 20px;
-webkit-transform-origin: bottom right;
transform-origin: bottom right
}
.zhui-badge-leaf:after {
content: "";
position: absolute;
top: 0;
left: 0
}
.zhui-badge-leaf-outer:after {
-webkit-transform: rotate(60deg);
transform: rotate(60deg)
}
.zhui-badge-leaf-inner,
.zhui-badge-leaf-inner:after {
-webkit-box-shadow: -5px -5px 10px 3px rgba(0, 0, 0, .06);
box-shadow: -5px -5px 10px 3px rgba(0, 0, 0, .06)
}
.zhui-badge-leaf-inner:after {
-webkit-transform: rotate(60deg);
transform: rotate(60deg)
}
.zhui-badge-leaf-outer:first-child {
-webkit-transform: rotate(0deg);
transform: rotate(0deg)
}
.zhui-badge-leaf-outer:nth-child(2) {
-webkit-transform: rotate(120deg);
transform: rotate(120deg)
}
.zhui-badge-leaf-outer:nth-child(3) {
-webkit-transform: rotate(240deg);
transform: rotate(240deg)
}
.zhui-badge-leaf-inner:nth-child(4) {
-webkit-transform: rotate(30deg);
transform: rotate(30deg)
}
.zhui-badge-leaf-inner:nth-child(5) {
-webkit-transform: rotate(150deg);
transform: rotate(150deg)
}
.zhui-badge-leaf-inner:nth-child(6) {
-webkit-transform: rotate(270deg);
transform: rotate(270deg)
}
body {
background-color: aliceblue;
padding: 400px;
}
</style>
</head>
<body>
<div class="zhui-badge">
<span style="display: block; width: 50px; height: 50px; background: rgb(221, 221, 221);"></span>
<div class="zhui-badge-wrapper">
<span class="zhui-badge-leaf zhui-badge-leaf-outer"></span>
<span class="zhui-badge-leaf zhui-badge-leaf-outer"></span>
<span class="zhui-badge-leaf zhui-badge-leaf-outer"></span>
<span class="zhui-badge-leaf zhui-badge-leaf-inner"></span>
<span class="zhui-badge-leaf zhui-badge-leaf-inner"></span>
<span class="zhui-badge-leaf zhui-badge-leaf-inner"></span>
<span class="zhui-badge-content">99</span>
</div>
</div>
</body>
</html>