console
var vu = {};
$(function () {
new Vue({
el: '#app',
data() {
return{
}
},
created() { vu = this; },
mounted() {
},
methods: {
}
})
});
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<title>title</title>
</head>
<body class="cantSelect">
<div id="app" class="app" v-cloak>
<div class="content">
<div class="card"></div>
</div>
</div>
</body>
</html>
[v-cloak] { display: none !important;}
*{margin: 0;}
.cantSelect{
-moz-user-select:none;
-webkit-user-select:none;
-ms-user-select:none;
-khtml-user-select:none;
-o-user-select:none;
user-select:none;
}
html,body{height: 100%;width: 100%;}
.app{
height: 100%;
width: 100%;
background-color: white;
}
.app>.content{
position: relative;
height: 100%;
width: 100%;
background-color: rgb(80, 80, 80);
}
.card{
position: absolute;
top:50%;
left:50%;
transform: translate(-50%,-50%);
width: 50px;
height: 50px;
background-color: rgb(255, 255, 255);
}