基于Vue所制作的发牌游戏(附全部代码)

本文利用Vue框架详细介绍了如何制作一款发牌游戏,包括效果展示和具体代码步骤,适合对Vue感兴趣的前端开发者学习。
摘要由CSDN通过智能技术生成

前言

文章使用Vue框架来制作,对Vue感兴趣的小伙伴可以点点收藏哦。

一、效果图片

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

二、使用步骤

1.代码如下

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://cdn.bootcss.com/vue/2.6.10/vue.js"></script>
		<style>
			#app {
     
				font-family: "microsoft yahei";
				position: fixed;
				top: 0;
				left: 0;
				right: 0;
				bottom: 0;
				background: url('images/bg.jpg') center / cover
			}



			#mine {
     
				position: absolute;
				bottom: 5vh;
				width: 100%;
				text-align: center;

			}

			#computer {
     
				position: absolute;
				top: 5vh;
				width: 100%;
				text-align: center;
				transform: scale(0.6);
			}

			#computer.closed {
     
				transform-style: preserve-3d;
				perspective: 1000px;
			}

			img {
     
				border-radius: 0.6vw;
				box-shadow: 1px 1px 3vw rgba(0, 0, 0, 0.5);
			}

			#computer.closed img {
     

				transform: rotateX(30deg);
			}


			#call {
     
				position: fixed;
				top: 50vh;
				width: 320px;
				left: calc(50% - 160px);
				background: rgba(255, 255, 255, 0.8);
				box-shadow: 1px 1px 16px rgba(0, 0, 0, 0.6);
				border: 1px solid rgba(255, 255, 255, 0.1);
				border-radius: 10px;
				z-index: 99;
				height: 150px;
				font-size: 30px;
				text-align: center;
				padding-top: 10px;
				line-height: 60px;
				color: #fff;
				
  • 7
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值