|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | + <head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <meta http-equiv="X-UA-Compatible" content="IE=edge" /> |
| 6 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 7 | + <title>tset</title> |
| 8 | + <!-- import CSS --> |
| 9 | + <link |
| 10 | + rel="stylesheet" |
| 11 | + href="https://unpkg.com/element-ui/lib/theme-chalk/index.css" |
| 12 | + /> |
| 13 | + <style> |
| 14 | + body { |
| 15 | + margin: 0; |
| 16 | + padding: 0; |
| 17 | + } |
| 18 | + .box { |
| 19 | + width: 100%; |
| 20 | + height: 100vh; |
| 21 | + background-image: linear-gradient(to right, #74ebd5 0%, #9face6 100%); |
| 22 | + display: flex; |
| 23 | + justify-content: space-around; |
| 24 | + align-items: center; |
| 25 | + } |
| 26 | + .borwser, |
| 27 | + .electron { |
| 28 | + width: 30%; |
| 29 | + height: 50%; |
| 30 | + /* background: white; */ |
| 31 | + /* 背景半透明 */ |
| 32 | + background: rgba(255, 255, 255, 1); |
| 33 | + border-radius: 10px; |
| 34 | + box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); |
| 35 | + display: flex; |
| 36 | + flex-direction: column; |
| 37 | + align-items: center; |
| 38 | + } |
| 39 | + .item-box { |
| 40 | + height: 80%; |
| 41 | + |
| 42 | + display: flex; |
| 43 | + flex-direction: column; |
| 44 | + align-items: center; |
| 45 | + /* background: red; */ |
| 46 | + width: 100%; |
| 47 | + justify-content: space-around; |
| 48 | + } |
| 49 | + /* From uiverse.io */ |
| 50 | + button { |
| 51 | + padding: 1.3em 3em; |
| 52 | + font-size: 14px; |
| 53 | + text-transform: uppercase; |
| 54 | + letter-spacing: 2.5px; |
| 55 | + font-weight: 600; |
| 56 | + /* color: #000; */ |
| 57 | + color: #fff; |
| 58 | + background-image: linear-gradient(to right, #92fe9d 0%, #00c9ff 100%); |
| 59 | + border: none; |
| 60 | + border-radius: 45px; |
| 61 | + box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1); |
| 62 | + transition: all 0.3s ease 0s; |
| 63 | + cursor: pointer; |
| 64 | + outline: none; |
| 65 | + } |
| 66 | + |
| 67 | + button:hover { |
| 68 | + background-color: #23c483; |
| 69 | + box-shadow: 0px 15px 20px rgba(46, 229, 157, 0.4); |
| 70 | + color: #fff; |
| 71 | + transform: translateY(-7px); |
| 72 | + } |
| 73 | + |
| 74 | + button:active { |
| 75 | + transform: translateY(-1px); |
| 76 | + } |
| 77 | + h1 { |
| 78 | + /* 斜体 */ |
| 79 | + font-style: italic; |
| 80 | + /* 加粗 */ |
| 81 | + font-weight: bold; |
| 82 | + /* 大写 */ |
| 83 | + text-transform: uppercase; |
| 84 | + } |
| 85 | + .input-box { |
| 86 | + position: absolute; |
| 87 | + top: 10%; |
| 88 | + left: 10%; |
| 89 | + } |
| 90 | + </style> |
| 91 | + </head> |
| 92 | + <body> |
| 93 | + <div id="app" class="box"> |
| 94 | + <button @click="handleClick">下载</button> |
| 95 | + </div> |
| 96 | + </body> |
| 97 | + <!-- import Vue before Element --> |
| 98 | + <!-- <script src="https://unpkg.com/vue/dist/vue.js"></script> --> |
| 99 | + <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.10/vue.min.js"></script> |
| 100 | + <!-- import JavaScript --> |
| 101 | + <script src="https://unpkg.com/element-ui/lib/index.js"></script> |
| 102 | + <script type="module" src="./dist/index.js"></script> |
| 103 | + <script> |
| 104 | + new Vue({ |
| 105 | + el: '#app', |
| 106 | + data: function () { |
| 107 | + return {} |
| 108 | + }, |
| 109 | + methods: { |
| 110 | + handleClick() { |
| 111 | + console.log('click') |
| 112 | + AxDownLoader() |
| 113 | + }, |
| 114 | + }, |
| 115 | + }) |
| 116 | + </script> |
| 117 | +</html> |
0 commit comments