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

…
边栏推荐
- 5G NR system messages
- Use KUSTO query statement (KQL) to query LOG on Azure Data Explorer Database
- PPOCR 检测器配置文件参数详解
- Chapter 5: Activiti process shunting judgment, judging to go to different task nodes
- 用KUSTO查询语句(KQL)在Azure Data Explorer Database上查询LOG实战
- PostgreSQL 2022 Report: Rising popularity, open source, reliability and scaling key
- 自定义过滤器和拦截器实现ThreadLocal线程封闭
- 如何用Golang来手写一个Blog - Milu.blog 开发总结
- 软件测试之集成测试
- 智能算力的枢纽如何构建?中国云都的淮海智算中心打了个样
猜你喜欢

字节一面:TCP 和 UDP 可以使用同一个端口吗?

解决2022Visual Studio中scanf返回值被忽略问题

DocuWare平台——文档管理的内容服务和工作流自动化的平台详细介绍(下)

SQL Outer Join Intersection, Union, Difference Query

365 days challenge LeetCode1000 questions - Day 050 add a row to the binary tree binary tree

HDD杭州站•ArkUI让开发更灵活

5G NR system messages

Integration testing of software testing

API 网关简述

365天挑战LeetCode1000题——Day 050 在二叉树中增加一行 二叉树
随机推荐
R语言使用yardstick包的pr_curve函数评估多分类(Multiclass)模型的性能、查看模型在多分类每个分类上的ROC曲线(precision(精准率),R代表的是recall(召回率)
Android development with Kotlin programming language II Conditional control
Latex如何控制表格的宽度和高度
华为分析&联运活动,助您提升游戏总体付费
Three methods for extracting facial features
19.3 restart the Oracle environment
智能算力的枢纽如何构建?中国云都的淮海智算中心打了个样
2022技能大赛训练题:交换机snmp配置
双因子与多因子身份验证有什么区别?
Android 开发用 Kotlin 编程语言 二 条件控制
abc262-D(dp)
gradle尚硅谷笔记
时间格式2020-01-13T16:00:00.000Z中的T和Z分别表示什么,如何处理
UDP communication
The host computer develops C# language: simulates the STC serial port assistant to receive the data sent by the microcontroller
Detailed explanation of PPOCR detector configuration file parameters
GPU-CUDA-图形渲染分析
power failure...Trouble trouble trouble!!!
Use KUSTO query statement (KQL) to query LOG on Azure Data Explorer Database
R语言ggplot2可视化:可视化密度图(Density plot)、可视化多个分组的密度图、数据点分布在箱图中间、添加主标题、副标题、题注信息