保存进度!

This commit is contained in:
Kane Wang 2022-10-20 18:04:19 +08:00
parent 8e3dcf4e5b
commit 7439e216b9
5 changed files with 16085 additions and 43 deletions

View File

@ -8,6 +8,15 @@
{ {
"label": "off" "label": "off"
} }
] ],
"compat-api/css": [
"default",
{
"ignore": [
"-webkit-text-size-adjust"
]
}
],
"highest-available-document-mode": "off"
} }
} }

View File

@ -1,3 +1,14 @@
/*
* @Author: Kane
* @Date: 2022-10-12 08:49:14
* @LastEditors: Kane
* @LastEditTime: 2022-10-20 16:45:14
* @FilePath: \car_dealer\css\kane.css
* @Description: vue学习用的样式表
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
*/
html { html {
--backupground-color: #f7f7f7; --backupground-color: #f7f7f7;
--btn-color-blue: #307dbe; --btn-color-blue: #307dbe;
@ -9,17 +20,20 @@ html {
#root, #root,
#app { #app {
height: 100vh;
width: 100vw;
position: fixed;
padding: 50px; padding: 50px;
/* font-size: 0; */
overflow: auto;
} }
#root, #root,
#app * + * { #app *+* {
margin-top: 15px; margin-top: 15px;
text-align: center;
}
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
} }
hr { hr {
@ -43,12 +57,10 @@ button {
border: none; border: none;
border-radius: 0.25em; border-radius: 0.25em;
font-size: 1.5rem; font-size: 1.5rem;
text-align: center;
} }
button + button { /* 用于按钮点击时样式切换。 */
margin-left: 0.5em;
}
button:active { button:active {
background-color: var(--btn-font-color); background-color: var(--btn-font-color);
color: var(--btn-color-red); color: var(--btn-color-red);
@ -64,4 +76,4 @@ label {
display: inline-block; display: inline-block;
font-size: 2rem; font-size: 2rem;
margin-top: 15px; margin-top: 15px;
} }

View File

@ -9,8 +9,10 @@
*/ */
html { html {
line-height: 1.15; /* 1 */ line-height: 1.15;
-webkit-text-size-adjust: 100%; /* 2 */ /* 1 */
-webkit-text-size-adjust: 100%;
/* 2 */
} }
/* Sections /* Sections
@ -51,9 +53,12 @@ h1 {
*/ */
hr { hr {
box-sizing: content-box; /* 1 */ box-sizing: content-box;
height: 0; /* 1 */ /* 1 */
overflow: visible; /* 2 */ height: 0;
/* 1 */
overflow: visible;
/* 2 */
} }
/** /**
@ -62,8 +67,10 @@ hr {
*/ */
pre { pre {
font-family: monospace, monospace; /* 1 */ font-family: monospace, monospace;
font-size: 1em; /* 2 */ /* 1 */
font-size: 1em;
/* 2 */
} }
/* Text-level semantics /* Text-level semantics
@ -83,9 +90,12 @@ a {
*/ */
abbr[title] { abbr[title] {
border-bottom: none; /* 1 */ border-bottom: none;
text-decoration: underline; /* 2 */ /* 1 */
text-decoration: underline dotted; /* 2 */ text-decoration: underline;
/* 2 */
text-decoration: underline dotted;
/* 2 */
} }
/** /**
@ -105,8 +115,10 @@ strong {
code, code,
kbd, kbd,
samp { samp {
font-family: monospace, monospace; /* 1 */ font-family: monospace, monospace;
font-size: 1em; /* 2 */ /* 1 */
font-size: 1em;
/* 2 */
} }
/** /**
@ -162,10 +174,14 @@ input,
optgroup, optgroup,
select, select,
textarea { textarea {
font-family: inherit; /* 1 */ font-family: inherit;
font-size: 100%; /* 1 */ /* 1 */
line-height: 1.15; /* 1 */ font-size: 100%;
margin: 0; /* 2 */ /* 1 */
line-height: 1.15;
/* 1 */
margin: 0;
/* 2 */
} }
/** /**
@ -174,7 +190,8 @@ textarea {
*/ */
button, button,
input { /* 1 */ input {
/* 1 */
overflow: visible; overflow: visible;
} }
@ -184,7 +201,8 @@ input { /* 1 */
*/ */
button, button,
select { /* 1 */ select {
/* 1 */
text-transform: none; text-transform: none;
} }
@ -238,12 +256,18 @@ fieldset {
*/ */
legend { legend {
box-sizing: border-box; /* 1 */ box-sizing: border-box;
color: inherit; /* 2 */ /* 1 */
display: table; /* 1 */ color: inherit;
max-width: 100%; /* 1 */ /* 2 */
padding: 0; /* 3 */ display: table;
white-space: normal; /* 1 */ /* 1 */
max-width: 100%;
/* 1 */
padding: 0;
/* 3 */
white-space: normal;
/* 1 */
} }
/** /**
@ -269,8 +293,10 @@ textarea {
[type="checkbox"], [type="checkbox"],
[type="radio"] { [type="radio"] {
box-sizing: border-box; /* 1 */ box-sizing: border-box;
padding: 0; /* 2 */ /* 1 */
padding: 0;
/* 2 */
} }
/** /**
@ -288,8 +314,10 @@ textarea {
*/ */
[type="search"] { [type="search"] {
-webkit-appearance: textfield; /* 1 */ -webkit-appearance: textfield;
outline-offset: -2px; /* 2 */ /* 1 */
outline-offset: -2px;
/* 2 */
} }
/** /**
@ -306,8 +334,10 @@ textarea {
*/ */
::-webkit-file-upload-button { ::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */ -webkit-appearance: button;
font: inherit; /* 2 */ /* 1 */
font: inherit;
/* 2 */
} }
/* Interactive /* Interactive
@ -346,4 +376,4 @@ template {
[hidden] { [hidden] {
display: none; display: none;
} }

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,62 @@
<!--
* @Author: Kane
* @Date: 2022-10-20 15:07:59
* @LastEditors: Kane
* @LastEditTime: 2022-10-20 16:45:40
* @FilePath: \car_dealer\vue\vue_01.html
* @Description:
*
* Copyright (c) ${2022} by Kane, All Rights Reserved.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>vue3入门</title>
<link rel="stylesheet" href="../css/root.css" .css" />
<link rel="stylesheet" href="../css/normalize.css" />
<link rel="stylesheet" href="../css/kane.css" .css" />
<script src="../js/vue/vue.global.js"></script>
</head>
<body>
<div id="app">
<div class="content">
<h1>{{title}}</h1>
<h1>{{count}}</h1>
<button v-on:click="addCount()">计数器</button>
<button v-on:click="switchButton()">{{btn_title}}</button>
</div>
</div>
</body>
<script>
const app = {
data() {
return {
title: "vue3 入门!",
count: 0,
btn_title: "走你",
btn_switch: true,
};
},
methods: {
addCount() {
this.count++;
},
switchButton() {
this.btn_switch = !this.btn_switch;
this.btn_title = this.btn_switch ? "走你!" : "滚";
}
},
};
const vm = Vue.createApp(app);
vm.mount("#app");
</script>
</html>