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

…
边栏推荐
- How to choose coins and determine the corresponding strategy research
- UDP通信
- 巴比特 | 元宇宙每日必读:中国1775万件数字藏品分析报告显示,85%的已发行数藏开通了转赠功能...
- Header file search rules when compiling with GCC
- sqlserver编写通用脚本实现获取一年前日期的方法
- 支持向量机SVM
- 问题征集丨ECCV 2022中国预讲会 · Panel专题研讨会
- MySQL 中 auto_increment 自动插入主键值
- How OpenHarmony Query Device Type
- STM32入门开发:编写XPT2046电阻触摸屏驱动(模拟SPI)
猜你喜欢

This notebook of concurrent programming knowledge points strongly recommended by Ali will be a breakthrough for you to get an offer from a big factory

工程设备在线监测管理系统自动预警功能

Scaling-law和模型结构的关系:不是所有的结构放大后都能保持最好性能

Opencv图像缩放和平移

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

负载均衡应用场景

Opencv算术操作

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

四、kubeadm单master

数据可视化(一)
随机推荐
【AGC】增长服务1-远程配置示例
前沿技术数字孪生如何应用在智慧城市上?
PostgreSQL 2022 Report: Rising popularity, open source, reliability and scaling key
苹果Meta都在冲的Pancake技术,中国VR团队YVR竟抢先交出产品答卷
Naive bayes
Http-Sumggling Cache Vulnerability Analysis
大佬们 我是新手,我根据文档用flinksql 写个简单的用户访问量的count 但是执行一次就结束
Discover the joy of C language
API 网关简述
GPU-CUDA-图形渲染分析
Three methods for extracting facial features
问题征集丨ECCV 2022中国预讲会 · Panel专题研讨会
Android 开发用 Kotlin 编程语言三 循环控制
软件测试之集成测试
智能算力的枢纽如何构建?中国云都的淮海智算中心打了个样
MySQL 中 auto_increment 自动插入主键值
2022杭电杯超级联赛(5)
UDP communication
[Translation] Chaos Net + SkyWalking: Better observability for chaos 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.