当前位置: 首页 > news >正文

用html写一个爱心

在这里插入图片描述

<!DOCTYPE html>
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>爱您</title><style>* {padding: 0;margin: 0;}body {background-color: pink;}#frame {position: relative;width: 400px;height: 300px;margin: 200px auto;}.left,.right {top: 0;width: 200px;height: 200px;border-radius: 50%;}.left {left: 35px;}.right {right: 35px;z-index: -1;}.bottom {bottom: 36px;left: 100px;width: 200px;height: 200px;transform: rotate(45deg);z-index: -1;}.heart {position: absolute;box-shadow: 0 0 40px #d5093c;animation: beat 0.8s ease infinite normal;background: linear-gradient(-90deg, #f50a45 0%, #d5093c 40%);}@keyframes beat {0% {transform: scale(1) rotate(225deg);box-shadow: 0 0 40px #d5093c;}50% {transform: scale(1.1) rotate(225deg);box-shadow: 0 0 70px #d5093c;}100% {transform: scale(1) rotate(225deg);box-shadow: 0 0 40px #d5093c;}}@keyframes a {0% {transform: scale(1) rotate(0deg);}50% {transform: scale(1.1) rotate(0deg);}100% {transform: scale(1) rotate(0deg);}}#z {width: 90px;margin: -23% 30%;position: absolute;animation: a 0.8s ease infinite normal;}#w {width: 90px;margin: -23% 67%;position: absolute;animation: a 0.8s ease infinite normal;}#con {width: 20px;margin: -7% 49.5%;position: absolute;animation: a 0.8s ease infinite normal;}</style></head><body><div id="frame"><div class="heart left"></div><div class="heart right"></div><div class="heart bottom"></div></div><div id="z"><h2>胡歌</h2></div><div id="w"><h2>未知</h2></div><!-- <div id="con"><h1>字里行间,全都是你。</h1></div> --><script type="text/javascript">var btn = document.getElementById('frame')//   双击事件btn.ondblclick = function () {// window.location.href = 'http://www.kim-shift.cn'window.open('http://www.kim-shift.cn')}</script></body>
</html>
http://www.lryc.cn/news/332427.html

相关文章:

  • 如何看到 synchronized 背后的“monitor 锁”?
  • 如何建立一个网页模版
  • P8783 [蓝桥杯 2022 省 B] 统计子矩阵
  • 【C++】list介绍
  • 【SQL Server】2. 将数据导入导出到Excel表格当中
  • 基于JAVA+SSM+VUE的前后端分离的大学竞赛管理系统
  • 音频转换工具 Bigasoft FLAC Converter for Mac
  • 洛谷 P4554 小明的游戏
  • 序列化案例实操(统计每一个手机号耗费的总上行流量、总下行流量、总流量)
  • 使用 LLMLingua-2 压缩 GPT-4 和 Claude 提示
  • 编程大牛坚持了 10 年的 10 个编程好习惯
  • QEMU上PAC功能验证与异常解析
  • 简约轻量-失信录系统源码
  • 前端入门系列-HTML-HTML常见标签(注释,标题,段落,换行)
  • 【mysql 第3-10条记录怎么查】
  • 1.Git是用来干嘛的
  • Git安装教程(图文安装)
  • SpringData ElasticSearch - 简化开发,完美适配 Spring 生态
  • 突破!AI机器人拥有嗅觉!仿生嗅觉芯片研究登上Nature子刊
  • 前端接口防止重复请求实现方案
  • 【leetcode面试经典150题】13.除自身以外数组的乘积(C++)
  • 网络编程核心概念解析:IP地址、端口号与网络字节序深度探讨
  • 突破编程_C++_网络编程(TCPIP 四层模型(网络层(1))
  • Java | Leetcode Java题解之第9题回文数
  • 极简云验证 download.php 文件读取漏洞复现
  • 红黑树路径长度分析:证明与实现
  • esp32 gpio初识(一)
  • python 自制黄金矿工游戏(设计思路+源码)
  • Splunk Attack Range:一款针对Splunk安全的模拟测试环境创建工具
  • OpenCV入门例程:裁剪图片、模糊检测、黑屏检测