Vue 2.0 Hello World
HTML
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
html,body{
padding:0;
margin:0;
box-sizing: border-box;
height: 100%;
}
ul,li{
list-style:none;
}
#app{
overflow: hidden;
height: 100%;
}
.nav{
width: 100%;
height: 80px;
background: red;
position: fixed;
left:0;
top:0;
}
.container{
margin-top: 80px;
width: 100%;
height: 100%;
overflow: auto;
overflow-x: hidden;
}
.w1200{
position: relative;
width: 1200px;
height: 100%;
margin: 0 auto;
}
.left{
position: fixed;
top: 80px;
bottom: 0;
z-index: 2;
width: 230px;
height: 100%;
overflow: auto;
overflow-x: hidden;
}
.right{
width: 100%;
position: absolute;
left: 0;
top: 0;
padding-left: 240px;
}
.list{
padding-bottom: 200px;
}
.list li{
padding: 10px;
}
</style>
</head>
<body>
<div id="app">
<div class="nav"></div>
<div class="container">
<div class="w1200">
<div class="left">
<ul class="list">
<li>menum1</li>
<li>menum2</li>
<li>menum3</li>
<li>menum4</li>
<li>menum5</li>
<li>menum6</li>
<li>menum7</li>
<li>menum8</li>
<li>menum9</li>
<li>menum10</li>
<li>menum11</li>
<li>menum12</li>
<li>menum13</li>
<li>menum14</li>
<li>menum15</li>
<li>menum16</li>
<li>menum17</li>
<li>menum18</li>
<li>menum19</li>
...