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

东莞制作企业网站西安关键词seo公司

东莞制作企业网站,西安关键词seo公司,上海全上海全国网站建设,建设公司官网制作平台目录 界面展示 完整代码 说明&#xff1a; 这是一个简单的星空主题的注册界面&#xff0c;使用了 HTML 和 CSS 来实现一个背景为星空效果的注册页面。 界面展示 完整代码 <!DOCTYPE html> <html lang"zh"> <head><meta charset"UTF-8&…

目录

界面展示

完整代码

说明:


这是一个简单的星空主题的注册界面,使用了 HTML 和 CSS 来实现一个背景为星空效果的注册页面。

界面展示

完整代码

<!DOCTYPE html>
<html lang="zh">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>星空主题注册界面</title><style>/* 星空背景效果 */body {margin: 0;padding: 0;height: 100vh;background: #1a1a2e; /* 深色背景 */color: white;font-family: Arial, sans-serif;display: flex;justify-content: center;align-items: center;overflow: hidden;position: relative;}/* 星星动画效果 */.stars {position: absolute;top: 0;left: 0;width: 100%;height: 100%;background: url('https://cdn.pixabay.com/photo/2017/08/30/02/18/starry-night-2695563_960_720.jpg') no-repeat center center fixed;background-size: cover;z-index: -1;}/* 注册框样式 */.register-box {background: rgba(0, 0, 0, 0.6); /* 半透明背景 */padding: 40px;border-radius: 10px;box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);width: 300px;text-align: center;}.register-box h2 {margin-bottom: 20px;font-size: 28px;font-weight: bold;}.input-field {margin-bottom: 20px;width: 100%;padding: 10px;background: #333;border: none;border-radius: 5px;color: white;font-size: 16px;}.input-field:focus {outline: none;background-color: #555;}.submit-btn {background: #ff6347; /* 番茄色 */border: none;padding: 15px;width: 100%;font-size: 18px;border-radius: 5px;cursor: pointer;color: white;}.submit-btn:hover {background-color: #ff4500; /* 番茄色变亮 */}/* 小星星动画 */.star {position: absolute;border-radius: 50%;width: 2px;height: 2px;background-color: white;animation: twinkle 1.5s infinite alternate;}@keyframes twinkle {0% {opacity: 0.8;transform: scale(1);}100% {opacity: 0.2;transform: scale(1.5);}}</style>
</head>
<body><div class="stars"></div><div class="register-box"><h2>注册账号</h2><form action="#" method="POST"><input type="text" class="input-field" placeholder="用户名" required><input type="password" class="input-field" placeholder="密码" required><input type="password" class="input-field" placeholder="确认密码" required><button type="submit" class="submit-btn">注册</button></form></div><script>// 创建小星星动画function createStars() {const numStars = 200;for (let i = 0; i < numStars; i++) {let star = document.createElement("div");star.classList.add("star");const x = Math.random() * 100;const y = Math.random() * 100;const duration = Math.random() * 2 + 1;const delay = Math.random() * 5;star.style.top = `${y}vh`;star.style.left = `${x}vw`;star.style.animationDuration = `${duration}s`;star.style.animationDelay = `${delay}s`;document.body.appendChild(star);}}createStars();</script>
</body>
</html>

说明:

  1. 背景:使用了一个静态的星空图片作为背景,可以替换成自己喜欢的星空图。
  2. 星星动画:通过在页面中动态生成多个小星星,并使用 CSS 动画来模拟它们闪烁的效果。
  3. 注册框:一个简单的半透明黑色注册框,包含用户名、密码和确认密码输入框,提交按钮颜色与星空主题协调。
  4. CSS 动画:星星通过 @keyframes 实现闪烁的效果。

嗨,我是命运之光。如果你觉得我的分享有价值,不妨通过以下方式表达你的支持:👍 点赞来表达你的喜爱,📁 关注以获取我的最新消息,💬 评论与我交流你的见解。我会继续努力,为你带来更多精彩和实用的内容。

点击这里👉 ,获取最新动态,⚡️ 让信息传递更加迅速。

http://www.wangmingla.cn/news/56575.html

相关文章:

  • 哈尔滨网站设计地推
  • 宁波建网站哪家青岛网站建设哪家好
  • 网站开发商品管理软文发布系统
  • 页面设计原型图seo企业推广案例
  • 自己做微网站推广排名
  • 辽宁建设工程信息网登录不上去广州seo公司排行
  • 怎么自己做直播网站百度上怎么注册店铺地址
  • 如何建立手机网站企业营销策划书如何编写
  • 做基因检测网站云盘搜
  • 宿州网站建设时间十大网络推广公司
  • 广西网站建设软件推广站长工具seo客户端
  • 网页设计师和ui设计师区别重庆百度seo排名
  • 无锡高端网站设计开发厦门人才网个人登录
  • 网站seo系统镇江seo
  • 潍坊网站建设 潍坊做网站国际新闻界
  • 建站合作网推怎么推广
  • 手机网站怎么做的好处刚刚突发1惊天大事
  • 做静态网站工资多少篮网目前排名
  • 青海医院网站建设公司专门做推广的软文
  • 烟台做网站公司郑州竞价托管代运营
  • 深圳出国劳务公司官网湛江seo
  • 网站模板 整站源码电商网站平台
  • vs做的网站源代码如何刷seo关键词排名
  • 泰安网站建设怎么样网络营销的重要性
  • 东营做网站的公司台州网站seo
  • 宁波网站制作与推广网络营销推广方案设计
  • 长沙给中小企业做网站的公司桔子seo查询
  • 织梦网站案例百度账号登录
  • 日本亲子游哪个网站做的好宁德市住房和城乡建设局
  • 滨江区网站开发公司看今天的新闻