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

wordpress网仿站建设项目前期收费查询网站

wordpress网仿站,建设项目前期收费查询网站,合肥网站到首页排名,组建小型信息系统网络写了一段html代码实现的效果&#xff1a;实现右上角有个图标&#xff0c;鼠标移动到该位置出现手型&#xff0c;点击会弹出登录窗口。功能实现前端&#xff0c;没有实现后端。<!DOCTYPE html> <html lang"zh-CN"> <head><meta charset"UTF…

写了一段html代码

实现的效果:

实现右上角有个图标,鼠标移动到该位置出现手型,点击会弹出登录窗口。

功能实现前端,没有实现后端。

<!DOCTYPE html>
<html lang="zh-CN">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>精选商品</title><script src="https://cdn.tailwindcss.com"></script><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"><style>/* 遮罩层 */.modal-overlay {transition: opacity 0.3s ease;opacity: 0;pointer-events: none;}.modal-overlay.active {opacity: 1;pointer-events: all;}/* 登录窗口 */.login-modal {position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%) scale(0.95);opacity: 0;pointer-events: none;transition: all 0.3s ease;z-index: 50;}.login-modal.active {transform: translate(-50%, -50%) scale(1);opacity: 1;pointer-events: all;}</style>
</head>
<body class="bg-gray-100 relative"><!-- 右上角登录图标 -->
<div class="absolute top-4 right-4 z-10"><button id="loginBtn" class="w-12 h-12 rounded-full bg-blue-500 flex items-center justify-center text-white shadow hover:bg-blue-600 transition cursor-pointer"><i class="fa-solid fa-user text-xl"></i></button>
</div><!-- 登录窗口遮罩层 -->
<div id="modalOverlay" class="modal-overlay fixed inset-0 bg-black/50"></div><!-- 登录窗口 -->
<div id="loginModal" class="login-modal bg-white rounded-lg shadow-xl w-full max-w-md p-6"><div class="flex justify-end mb-4"><button id="closeBtn" class="text-gray-500 hover:text-gray-700 transition"><i class="fa-solid fa-times text-xl"></i></button></div><div class="space-y-4"><h2 class="text-2xl font-bold text-center text-gray-800">账号登录</h2><div><label for="username" class="block text-sm font-medium text-gray-700 mb-1">用户名/手机号</label><input type="text" id="username" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 outline-none transition" placeholder="请输入用户名或手机号"></div><div><label for="password" class="block text-sm font-medium text-gray-700 mb-1">密码</label><input type="password" id="password" class="w-full px-4 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 outline-none transition" placeholder="请输入密码"></div><div class="flex items-center justify-between"><label class="flex items-center text-sm text-gray-600"><input type="checkbox" class="mr-2 h-4 w-4 text-blue-500 focus:ring-blue-500 border-gray-300 rounded">记住我</label><a href="#" class="text-sm text-blue-500 hover:text-blue-600 transition">忘记密码?</a></div><button class="w-full bg-blue-500 text-white font-medium py-2 px-4 rounded-lg hover:bg-blue-600 transition">登录</button><div class="text-center text-sm text-gray-600 mt-4">还没有账号?<a href="#" class="text-blue-500 hover:text-blue-600 font-medium transition">立即注册</a></div></div>
</div><script>const loginBtn = document.getElementById('loginBtn');const loginModal = document.getElementById('loginModal');const closeBtn = document.getElementById('closeBtn');const modalOverlay = document.getElementById('modalOverlay');function openLoginModal() {loginModal.classList.add('active');modalOverlay.classList.add('active');document.body.style.overflow = 'hidden';}function closeLoginModal() {loginModal.classList.remove('active');modalOverlay.classList.remove('active');document.body.style.overflow = '';}loginBtn.addEventListener('click', openLoginModal);closeBtn.addEventListener('click', closeLoginModal);modalOverlay.addEventListener('click', closeLoginModal);document.addEventListener('keydown', (e) => {if (e.key === 'Escape' && loginModal.classList.contains('active')) {closeLoginModal();}});
</script>
</body>
</html>

http://www.dtcms.com/a/479156.html

相关文章:

  • tcp和udp协议报文段的报文格式
  • C#异步编程:async修饰方法的返回类型说明
  • MC33PT2000控制主要功能函数代码详解三
  • C语言--数据类型
  • 需求冻结后仍频繁突破怎么办
  • 做外贸电商网站士兵突击网站怎么做
  • Windows7MasterSetup_1.0.0.25.exe 怎么安装?完整操作步骤
  • dify-on-wechat部署(gewechat在2025-5-08已停用)本文只做记录
  • 网站建设答辩ppt下载教育wordpress模板下载
  • asp网站管理系统源码自动升级wordpress失败
  • 学做网站需要学什么临沂seo网站管理
  • Bonree ONE 2025秋季版产品发布会预告片发布!
  • DNS 会如何影响你的上网体验
  • 上海网站建设那家好搜狗优化好的网站
  • 网站优化的方式建筑工程资料网站
  • 【视觉SLAM十四讲】后端 1
  • 网站开发团队 人员运营和营销有什么区别
  • 杭州网站seo推广小程序价格为什么比网站建设高
  • 解码Linux文件IO之系统IO
  • 重庆做网站的公司网站开发都做什么
  • 商丘做网站一般多少钱军事新闻直播在线观看
  • LibGDX游戏开发性能优化实战:对象池模式在LibGDX中的应用
  • 网站 空间 租用帝国网站地图模板
  • 贸易网站源码电子商务网站规划方案
  • mysql读写分离中间件Atlas安装部署及使用
  • MySQL ORDER BY 深度解析:索引排序规则与关键配置参数阈值​
  • electron 套壳
  • 网站建设技术架构为了推广公众号可以采取的方法有
  • 网站建设蓝色工匠美创网站建设优势
  • 项目1:FFMPEG推流器讲解(五):FFMPEG时间戳、时间基、时间转换的讲解