Vue进行页面布局

Vue进行页面布局

<template>
  <!-- 主窗体 -->
 <div class="main">
    <!-- 快捷导航 -->
    <div class="shortcut">
      <div class="wrapper">
        <ul>
          <li><a href="#">主页面</a></li>
          <li><a href="#">返回</a></li>
        </ul>
      </div>
    </div>

    <!-- 头部区域 -->
    <div class="header wrapper">

      <el-button type="text" class="el-icon-full-screen" @click="setMode('RECT')">矩形</el-button>
      <el-button type="text" class="el-icon-full-screen" @click="setMode('RECT')">矩形</el-button>
      <el-button type="text" class="el-icon-full-screen" @click="setMode('RECT')">矩形</el-button>
      <el-button type="text" class="el-icon-full-screen" @click="setMode('RECT')">矩形</el-button>

    </div>

    <!-- 中间内容区域 -->
    <div class="container wrapper">
        <!-- 左侧区域 -->
        <div class="left">

        </div>


        <!-- 中部区域 -->
        <div class="middle">

        </div>

        <!-- 右部区域 -->
        <div class="right">

        </div>
    </div>




    <!-- 底部区域 -->
    <div class="footer">
      <div class="wrapper">
      </div>
    </div>
 </div>
   
</template>


<script>
export default {
  name: "LabelingView",
  data() {
    return {}
  },
  components: {
  },
  methods: {
  }
}

</script>


<style scoped>

/* 取消固定样式 */
a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol, output, p, pre, q, ruby, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
    list-style: none;
    text-decoration: none;
}

/* 版心 */
.wrapper{
    display: flex;
    margin: 0 auto;
    width: 1240px;
    /* background-color: pink; */
    overflow: hidden;
}

/* 快捷导航 */
.shortcut{
  height: 52px;
  background-color: #333;
}

.shortcut .wrapper{
  /* flex弹性布局 */
  display: flex; 
  /* 水平右对齐 */
  justify-content: flex-end;
  height: 51px;
  /* background-color: pink; */
}

.shortcut ul{
  display: flex;
  line-height: 52px;
}

.shortcut li a {
  padding: 0 15px;
  border-right: 1px solid #999;
  font-size: 14px;
  color: #fff;
}

.shortcut li:last-child a{
  border-right: 0;
}

/* 一 头部区域 */
.header{
  display: flex;
  margin-top: 10px;
  margin-bottom: 10px;
  height: 50px ;
  background-color: pink;
}

/* 二 左侧区域 */
.left{
  width: 200px;
  height: 800px;
  background-color: blue;
}

/* 三 中部区域 */
.middle{
  width: 800px;
  height: 800px;
  background-color: green;
}

/* 四 右侧区域 */
.right{
  width: 240px;
  height: 800px;
  background-color: red;
}

/* 五 底部区域 */
.footer{
  height: 80px;
  background-color: black;
}

</style>

在这里插入图片描述

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值