[add] fonts
This commit is contained in:
parent
0cfef65a79
commit
f5438c7f65
@ -4,6 +4,8 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<link href="./src/assets/ZenMaruGothic-Regular.ttf" rel="stylesheet">
|
||||
<!-- <link href="https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic&display=swap" rel="stylesheet"> -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>BJ_Casino_Rank</title>
|
||||
</head>
|
||||
|
@ -9,6 +9,8 @@ import BJ_Casino_Rank from './components/BJ_Casino_Rank.vue';
|
||||
</template>
|
||||
|
||||
<style>
|
||||
@import url('../src/assets/fonts.css');
|
||||
|
||||
#app {
|
||||
font-family: Avenir, Helvetica, Arial, sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
@ -16,5 +18,6 @@ import BJ_Casino_Rank from './components/BJ_Casino_Rank.vue';
|
||||
text-align: center;
|
||||
color: #2c3e50;
|
||||
margin-top: 60px;
|
||||
font-family: 'Zen Maru Gothic', sans-serif;
|
||||
}
|
||||
</style>
|
||||
|
7
src/assets/fonts.css
Normal file
7
src/assets/fonts.css
Normal file
@ -0,0 +1,7 @@
|
||||
@font-face {
|
||||
/* 重命名字体名 */
|
||||
font-family: 'Zen Maru Gothic';
|
||||
src: url('./fonts/ZenMaruGothic-Regular.ttf');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
BIN
src/assets/fonts/ZenMaruGothic-Regular.ttf
Normal file
BIN
src/assets/fonts/ZenMaruGothic-Regular.ttf
Normal file
Binary file not shown.
@ -1,3 +1,4 @@
|
||||
import 'bootstrap';
|
||||
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||
import { createApp } from 'vue';
|
||||
import App from './App.vue';
|
||||
|
Loading…
Reference in New Issue
Block a user