前端静态网页案例(含有vue)## 静态
html
```html
```html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcom to mw</title>
<link rel="stylesheet" href="css/c.css">
</head>
<body>
<div class="bg">
<span class="wz1">
品质
</span>
<div class="an">
<button onclick="dj()">go to shop</button>
</div>
</div>
<script>
function dj(){
window.location.href='index1.html';
}
</script>
</body>
</html>
*{
margin: 0;
padding: 0;
}
html,body{
width: 100%;
height: 100%;
}
.bg{
width: 100%;
height: 100%;
background-image: url(../images/shouye3.jpg) ;
background-size: 100% 100%;
position: relative;
}
.an{
width: 150px;
height: 50px;
padding-top: 500px;
padding-left: 50%;
animation: move2 2s ease-in ;
}
button{
width: 150px;
height: 50px;
color: blanchedalmond;
text-align: center;
border-radius: 5em;
background: rgb(0, 0, 0,0);
position: absolute;
}
@keyframes move2{
from{
transform: translate(-100%);
}
to{
transform: translate(0);
}
}
@keyframes move3{
from{
transform: translate(-100%);
}
to{
transform: translate(0);
}
}
.wz1{
position: absolute;
padding-top: 100px;
padding-left: 50px;
font-size: 50px;
color: rgb(51, 47, 47);
animation: move3 1s ease-in ;
}
index-1
html-1
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>mw</title>
<link rel="stylesheet" href="css/c1.css">
</head>