From cd5f15db84b257031a01561dd8b617446ed39417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=B5=A9?= <3116737282@qq.com> Date: Sun, 5 Jan 2025 13:23:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A1=B5=E8=84=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 1 + src/FooTer.vue | 32 ++++++++++++++++++++++++++++++++ src/assets/main.css | 10 ++++++++-- src/main.ts | 2 ++ 4 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 src/FooTer.vue diff --git a/index.html b/index.html index 812cd02..6fa940b 100644 --- a/index.html +++ b/index.html @@ -8,6 +8,7 @@
+ diff --git a/src/FooTer.vue b/src/FooTer.vue new file mode 100644 index 0000000..27b92f4 --- /dev/null +++ b/src/FooTer.vue @@ -0,0 +1,32 @@ + + + + + diff --git a/src/assets/main.css b/src/assets/main.css index dc135bd..86a27c0 100644 --- a/src/assets/main.css +++ b/src/assets/main.css @@ -7,8 +7,14 @@ font-weight: normal; } -a, -.blue { +#footer { + position: fixed; + bottom: 0; + width: 100%; + text-align: center; +} + +a { text-decoration: none; color: rgb(0, 129, 204); transition: 0.4s; diff --git a/src/main.ts b/src/main.ts index 0ac3a5f..26d44fb 100644 --- a/src/main.ts +++ b/src/main.ts @@ -2,5 +2,7 @@ import './assets/main.css' import { createApp } from 'vue' import App from './App.vue' +import FooTer from './FooTer.vue' createApp(App).mount('#app') +createApp(FooTer).mount('#footer')