当前位置:网站首页>祝所有码农七夕快乐~
祝所有码农七夕快乐~
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,没有你,就算我布局的再好,没了你也失去了颜色

…
边栏推荐
- 巴比特 | 元宇宙每日必读:中国1775万件数字藏品分析报告显示,85%的已发行数藏开通了转赠功能...
- CenOS MySQL入门及安装
- 60行从零开始自己动手写FutureTask是什么体验?
- Microcontroller: temperature control DS18B20
- 5G NR system messages
- .NET in-depth analysis of the LINQ framework (6: LINQ execution expressions)
- 七夕来袭!还要做CDH数据迁移怎么办?来看看DistCp
- 学生信息管理系统(第一次.....)
- SkiaSharp 之 WPF 自绘 投篮小游戏(案例版)
- 安全软件Avast与赛门铁克诺顿NortonLifeLock合并获英国批准
猜你喜欢

The host computer develops C# language: simulates the STC serial port assistant to receive the data sent by the microcontroller

【OpenCV】-仿射变换

shell编程流程控制练习

Support Vector Machine SVM

Http-Sumggling缓存漏洞分析

张朝阳对话俞敏洪:一边是手推物理公式,一边是古诗信手拈来

什么是 DevOps?看这一篇就够了!

用KUSTO查询语句(KQL)在Azure Data Explorer Database上查询LOG实战

PCB layout must know: teach you to correctly lay out the circuit board of the op amp

gradle尚硅谷笔记
随机推荐
记2022年七夕感慨
Discover the joy of C language
苹果Meta都在冲的Pancake技术,中国VR团队YVR竟抢先交出产品答卷
可视化开发必看:智慧城市四大核心技术
How to write a blog with Golang - Milu.blog development summary
TiDB 6.0 Placement Rules In SQL 使用实践
2022技能大赛训练题:交换机snmp配置
SkiaSharp 之 WPF 自绘 投篮小游戏(案例版)
Latex如何控制表格的宽度和高度
PG优化篇--执行计划相关项
The fuse: OAuth 2.0 four authorized login methods must read
R语言ggplot2可视化:可视化密度图(Density plot)、可视化多个分组的密度图、数据点分布在箱图中间、添加主标题、副标题、题注信息
PostgreSQL 2022 报告:流行度上涨,开源、可靠性和扩展是关键
SQL Outer Join Intersection, Union, Difference Query
Chapter 5: Activiti process shunting judgment, judging to go to different task nodes
The fuse: OAuth 2.0 four authorized login methods must read
微信小程序标题栏封装
[Android] How to use RecycleView in Kotlin project
Three methods for extracting facial features
化繁为简!阿里新产亿级流量系统设计核心原理高级笔记(终极版)