偷窃红宝石小游戏
代码语言: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: 50px; display: flex; flex-direction: column; align-items: center; justify-content: space-around; color: #a31414; } h1 { font-size: 24px; user-select: none; } .v-laser { display: none; position: absolute; width: 3px; height: 100vh; box-shadow: inset 1px 0 10px #fff, inset 3px 0 0 #f0f, 0 0 50px #fff, 0 0 20px #f0f; } .h-laser { display: none; position: absolute; width: 100vw; height: 3px; box-shadow: inset 0 1px 10px #fff, inset 0 3px 0 #f0f, 0 0 50px #fff, 0 0 20px #f0f; } .vl1 { left: calc(1/10 * 100vw); } .vl2 { left: calc(1/5 * 100vw); } .vl3 { left: calc(1/3 * 100vw); } .vl4 { right: calc(1/3 * 100vw); } .vl5 { right: calc(1/5 * 100vw); } .vl6 { right: calc(1/10 * 100vw); } .hl1 { top: calc(1/10 * 100vh); } .hl2 { top: calc(1/5 * 100vh); } .hl3 { top:.........完整代码请登录后点击上方下载按钮下载查看
网友评论0