<template>
  <div class="right">
    <div class="U_head">
      <div class="search">
        <el-input
          placeholder="请输入内容"
          prefix-icon="el-icon-search"
          v-model="input2"
        >
        </el-input>
      </div>
      <div class="Navigation">
        <div class="whole"><a>全部</a></div>
        <div class="Not_Shipped"><a>未发货</a></div>
        <div class="Shipped"><a>已发货</a></div>
        <div class="Completed"><a>已完成</a></div>
      </div>
    </div>
    <router-view></router-view>
  </div>
</template>

用CSS控制

.U_head{
/*  border: 1px solid red;*/
  background-color: rgb(233,233,233);
  position: fixed;
  width: 100%;
  height: 75px;
  left: 0;
  top: 0;
  z-index: 1000;
}

vue背景色布满全屏

.right::before{
  content:'';
  position: fixed;
  z-index: -1;
  background-size: 100% auto;
  background-color: rgb(233,233,233);
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  padding: 0px;
  margin: 0px;

  }
Logo

前往低代码交流专区

更多推荐