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

斗地主小游戏

<!DOCTYPE html>
<html><head><meta charset="utf-8"><title>斗地主</title><style>.game-container {width: 1000px;height: 700px;margin: 0 auto;position: relative;background: #35654d;border-radius: 10px;padding: 20px;}.player-area {position: absolute;padding: 10px;}#player1 {left: 20px;top: 40%;transform: translateY(-50%);width: 100px;height: 400px;}#player2 {right: 20px;top: 40%;transform: translateY(-50%);width: 100px;height: 400px;}.played-area.vertical-cards .card {margin-bottom: -50px;transform-origin: center;margin-right: 0;display: block;/* 改为块级元素实现垂直排列 */}#player1Played {left: 160px;top: 45%;transform: translateY(-50%);width: 100px;/* 调整宽度适应单张牌 */height: 200px;display: flex;flex-direction: column;/* 垂直方向排列 */align-items: center;}#player2Played {right: 160px;top: 45%;transform: translateY(-50%);width: 100px;/* 调整宽度适应单张牌 */height: 200px;display: flex;flex-direction: column;/* 垂直方向排列 */align-items: center;}#playerHand {bottom: 60px;left: 50%;transform: translateX(-50%);width: 740px;height: 120px;}.vertical-cards .card {margin-bottom: -50px;transform-origin: center;margin-right: 0;}.vertical-cards .card {margin-bottom: -50px;transform-origin: center;margin-right: 0;}.played-area {position: absolute;width: 200px;height: 100px;background: rgba(255, 255, 255, 0.1);border-radius: 5px;display: flex;justify-content: center;align-items: center;}#playerPlayed {left: 50%;bottom: 220px;transform: translateX(-50%);}.card {display: inline-block;width: 50px;height: 70px;background: white;border: 1px solid #000;margin-right: -25px;text-align: left;padding: 5px;cursor: pointer;user-select: none;position: relative;vertical-align: top;font-weight: bold;}.card::before {content: attr(data-value);position: absolute;top: 2px;left: 2px;font-size: 12px;}.card:hover {transform: translateY(-14px);transition: transform 0.2s ease;}.card.selected {transform: translateY(-14px);background: #ffeb3b;}#player1 .card {transform: rotate(90deg);margin-bottom: -50px;}#player2 .card {transform: rotate(-90deg);margin-bottom: -50px;}#player1Played .card {transform: rotate(90deg);margin-bottom: -50px;vertical-align: top;}/* #player2Played .card {transform: rotate(-90deg);margin-bottom: -50px;vertical-align: top;} */#player2Played .card {transform: rotate(-90deg);margin-bottom: -50px;vertical-align: top;position: relative;/* 添加相对定位 */}#player2Played .card:nth-child(1) {z-index: 10;}#player2Played .card:nth-child(2) {z-index: 9;}#player2Played .card:nth-child(3) {z-index: 8;}#player2Played .card:nth-child(4) {z-index: 7;}#player2Played .card:nth-child(5) {z-index: 6;}#player2Played .card:nth-child(6) {z-index: 5;}#player2Played .card:nth-child(7) {z-index: 4;}#player2Played .card:nth-child(8) {z-index: 3;}#player2Played .card:nth-child(9) {z-index: 2;}#player2Played .card:nth-child(10) {z-index: 1;}.vertical-cards .card:hover {transform: rotate(-90deg) translateX(-14px);}#player2 .card:hover {transform: rotate(90deg) translateX(-14px);}.vertical-cards .card.selected {transform: rotate(-90deg) translateX(-14px);}#player2 .card.selected {transform: rotate(90deg) translateX(-14px);}.card.red {color: red;}.card.black {color: black;}.card.joker {color: #ff4081;}.card.jokerSmall {color: black;}.played-cards {position: absolute;top: 50%;left
http://www.lryc.cn/news/547518.html

相关文章:

  • 如何改变怂怂懦弱的气质(2)
  • C# OnnxRuntime部署DAMO-YOLO人头检测
  • 基于GeoTools的GIS专题图自适应边界及高宽等比例生成实践
  • 各种DCC软件使用Datasmith导入UE教程
  • 尚硅谷爬虫note15
  • 云原生系列之本地k8s环境搭建
  • 关于tomcat使用中浏览器打开index.jsp后中文显示不正常是乱码,但英文正常的问题
  • mysql foreign_key_checks
  • 开发环境搭建-06.后端环境搭建-前后端联调-Nginx反向代理和负载均衡概念
  • REST API前端请求和后端接收
  • 道可云人工智能每日资讯|《奇遇三星堆》VR沉浸探索展(淮安站)开展
  • 服务器数据恢复—raid5阵列中硬盘掉线导致上层应用不可用的数据恢复案例
  • 【Pandas】pandas Series swaplevel
  • esp32s3聊天机器人(二)
  • pyside6学习专栏(九):在PySide6中使用PySide6.QtCharts绘制6种不同的图表的示例代码
  • DVI分配器2进4出,2进8出,2进16出,120HZ
  • 迷你世界脚本文字板接口:Graphics
  • 5分钟速览深度学习经典论文 —— attention is all you need
  • Cursor + IDEA 双开极速交互
  • HDFS的设计架构
  • 为wordpress自定义一个留言表单并可以在后台进行管理的实现方法
  • tauri-plugin-shell插件将_blank的a标签用浏览器打开了,,,解决办法
  • 【大模型基础_毛玉仁】1.1 基于统计方法的语言模型
  • 使用 Docker 部署 RabbitMQ 并实现数据持久化
  • Pandas的数据转换函数
  • 影刀 RPA 实战开发阶段总结
  • Linux系统上安装kafka
  • DeepSeek如何快速开发PDF转Word软件
  • 虚拟机 | Ubuntu图形化系统: open-vm-tools安装失败以及实现文件拖放
  • Mysql-经典故障案例(1)-主从同步由于主键问题引发的故障