布局代码提交

This commit is contained in:
luoshiwen 2023-02-10 16:48:24 +08:00
parent 0fbc11e1bd
commit 6aa096019e
2 changed files with 14 additions and 12 deletions

View File

@ -1,3 +1,4 @@
<template> <template>
<div id="app"> <div id="app">
<div class="top"> <div class="top">
@ -49,7 +50,7 @@ export default {
<style lang="less" scoped> <style lang="less" scoped>
.top{ .top{
width: 100%; width: 100%;
height: 9.6%; height: 8.6%;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.topLeft{ .topLeft{
@ -75,7 +76,9 @@ export default {
} }
} }
.main{ .main{
height: calc(100% - 9.6%); height: calc(100% - 8.6%);
width: 100%; width: 100%;
position: relative;
top: -3.8%;
} }
</style> </style>

View File

@ -51,16 +51,15 @@ methods:{
<style> <style>
.content{ .content{
/* width: 100%; width: 100%;
*/
height: 100%; height: 100%;
position: relative; position: relative;
} }
.left-content,.right-content{ .left-content,.right-content{
position: absolute; position: absolute;
width: 396px; width: 20.6%;
top: 0; top: 0;
height: 980px; height: 100%;
/* background-color: aqua; */ /* background-color: aqua; */
} }
/* 内容板块背景 */ /* 内容板块背景 */
@ -70,23 +69,23 @@ methods:{
margin-bottom: 5px; margin-bottom: 5px;
} }
.left-content .business-hall{ .left-content .business-hall{
height: 378px; height: 38.2%;
} }
.left-content .passenger-flow{ .left-content .passenger-flow{
height: 392px; height: 39.7%;
} }
.left-content .hall-statistics{ .left-content .hall-statistics{
height: 197px; height: 20.4%;
} }
.right-content .payment{ .right-content .payment{
height: 378px; height: 38.3%;
} }
.right-content .business-acceptance{ .right-content .business-acceptance{
height: 296px; height: 30%;
} }
.right-content .service{ .right-content .service{
height: 296px; height: 30%;
} }
.right-content{ .right-content{
right: 0; right: 0;