canvas居中小游戏
代码语言:html
所属分类:游戏
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css?family=Cousine&display=swap"); * { box-sizing: border-box; padding: 0; margin: 0; } body { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100' transform='rotate(45)' opacity='0.1' width='100' height='100'%3E%3Ccircle r='20' fill='hsl(128, 40%25, 45%25)' id='circle' /%3E%3Cg id='circles'%3E%3Cuse href='%23circle.........完整代码请登录后点击上方下载按钮下载查看
网友评论0