偷窃红宝石小游戏

代码语言:html

所属分类:游戏

代码描述:偷窃红宝石小游戏,拖动鼠标越过红外线

代码标签:

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开


<!DOCTYPE html>
<html lang="en" >

<head>

  <meta charset="UTF-8">

  
<style>
@import url('https://fonts.googleapis.com/css2?family=Merriweather&display=swap');

* {
  margin: 0;
  padding: 0;
  font-family: 'Merriweather', serif;
}

.container {
  width: 100vw;
  height: 100vh;
  position: relative;
  background: #8f9bbc;
}

.message-box {
  display: none;
  z-index: 2;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 100px;
  padding: 20px;
  background: #a31414;
  box-sizing: border-box;
  border-radius: 8px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3)
}

.message-title, .message {
  color: #fff;
  font-size: 16px;
  text-align: center;
}

.message {
  margin-top: 10px;
  font-size: 12px;
}

.close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  font-size: 36px;
  font-weight: bold;
  color: #bd2222;
  width: 40px;
  height: 40px;
  background: #de4040;
  border-radius: 50%;
  cursor: pointer;
}

.close {
  position: absolute;
  top: -4px;
  left: 9px;
  user-select: none;
}

.steal-this {
  position: absolute;
  left: 50%;
  bottom: calc(1/4 * 100vh);
  transform: translateX(-50%);
  width: 200px;
  height:.........完整代码请登录后点击上方下载按钮下载查看

网友评论0