当前位置:网站首页>祝所有码农七夕快乐~
祝所有码农七夕快乐~
2022-08-05 11:07:00 【激进的韭菜】
创意代码表白
以程序员的方式撒狗粮,专业浪漫,值得拥有!
<!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.0">
<title>Document</title>
<style>
/* 跳动 */
@keyframes beat {
from {
transform: rotate(45deg) scale(2);
}
to {
transform: rotate(45deg) scale(2.3);
}
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: #f7f1e3;
}
.love {
width: 100px;
height: 100px;
background-color: #e74c3c;
transform: rotate(45deg) scale(2);
animation: beat 800ms ease infinite alternate forwards;
position: relative;
}
.score {
width: 80px;
height: 80px;
background-color: #e74c3c;
position: absolute;
top: 10px;
left: 10px;
z-index: 100;
}
.content {
transform: rotate(-45deg);
position: absolute;
top: 12px;
left: -19px;
font-size: 20px;
}
.love,
.love::before,
.love::after {
box-shadow: -5px 16px 12px -3px rgba(0,0,0,0.4) inset;
}
.love::before,
.love::after {
content: "";
display: block;
width: 100px;
height: 100px;
background-color: rgba(231, 76, 60,1.0);
border-radius: 50%;
position: absolute;
}
.love::before {
right: 50%;
}
.love::after {
bottom: 50%;
}
</style>
</head>
<body>
<div class="love"><div class="score"><div class="content">七夕快乐~</div></div></div>
</body>
</html>- 效果演示

你是CSS我是DIV,没有你,就算我布局的再好,没了你也失去了颜色

…
边栏推荐
- MMDetection in action: MMDetection training and testing
- trie树模板
- [Translation] Chaos Net + SkyWalking: Better observability for chaos engineering
- power failure...Trouble trouble trouble!!!
- R语言ggplot2可视化:可视化密度图(Density plot)、可视化多个分组的密度图、数据点分布在箱图中间、添加主标题、副标题、题注信息
- flutter 服务器返回数据判断是否为空
- 【深度学习】mmclassification mmcls 实战多标签分类任务教程,分类任务
- Detailed explanation of PPOCR detector configuration file parameters
- How to choose coins and determine the corresponding strategy research
- 如何修改管理工具client_encoding
猜你喜欢

RT - Thread record (a, RT, RT Thread version - Thread Studio development environment and cooperate CubeMX quick-and-dirty)

苹果Meta都在冲的Pancake技术,中国VR团队YVR竟抢先交出产品答卷

5G NR 系统消息

Leetcode刷题——623. 在二叉树中增加一行

朴素贝叶斯

脱光衣服待着就能减肥,当真有这好事?

智能算力的枢纽如何构建?中国云都的淮海智算中心打了个样

In-depth understanding of timeout settings for Istio traffic management

Integration testing of software testing

并非富人专属,一文让你对NFT改观
随机推荐
Chapter 5: Activiti process shunting judgment, judging to go to different task nodes
I'm going crazy.Again A few days can not be A problem
如何测试一下现场的备机失败,转发主机的场景?
nyoj754 黑心医生 结构体优先队列
Student Information Management System (first time...)
The fuse: OAuth 2.0 four authorized login methods must read
《分布式云最佳实践》分论坛,8 月 11 日深圳见
What are the standards for electrical engineering
Can't get in to ask questions.I want to ask you a question about the return value (traversal of the graph), please give Xiaobai an answer.
学生信息管理系统(第一次.....)
Microcontroller: temperature control DS18B20
MMDetection in action: MMDetection training and testing
Go学习笔记(篇二)初识Go
字节一面:TCP 和 UDP 可以使用同一个端口吗?
智能算力的枢纽如何构建?中国云都的淮海智算中心打了个样
nyoj1185最大最小值(线段树)
.NET in-depth analysis of the LINQ framework (6: LINQ execution expressions)
时间格式2020-01-13T16:00:00.000Z中的T和Z分别表示什么,如何处理
hdu4545 Magic String
R语言使用yardstick包的pr_curve函数评估多分类(Multiclass)模型的性能、查看模型在多分类每个分类上的ROC曲线(precision(精准率),R代表的是recall(召回率)