<template>
  <router-view />
  <nav class="navbar">
    <!-- &nbsp;&nbsp; -->
    <div class="nav-bar-item">
      <router-link class="narRouter" to="/ty">体育</router-link>
    </div>
    <div class="nav-bar-item">
      <router-link class="narRouter" to="/">总览</router-link>
    </div>
    <div class="nav-bar-item">
      <router-link class="narRouter" to="/wh">文化</router-link>
    </div>
  </nav>
</template>

<style scoped>
.navbar {
  position: fixed;
  height: 2.8rem;
  width: 100%;
  display: block;
  font-size: 0.98rem;
  left: 0;
  bottom: 0;
  z-index: 90;
  background-color: #111228;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-bar-item{
  width: 33%;
}

.navbar a {
  display: block;
  text-align: center;
  line-height: 36px;
  width: 50%;
  margin: 0 auto;
  border-radius: 5px;
}
/* .navbar a:hover{
  background: transparent;
} */
.navbar a.router-link-exact-active {
  width: 50%;
  margin: 0 auto;
  line-height: 36px;
  background-color: #026AFF;
}

/* .navbar .narRouter {
  display: block;
  float: left;
  width: 33.33% !important;
  text-align: center;
  line-height: 44px;
  background-color: #0c2151;

} */

/* .navbar .ative {
  width: 100px;
  line-height: 44px;
  background-image: linear-gradient(#2132fa, #1d37fb);
  background-repeat: no-repeat;
  background-size: 50% 70%;
  background-position: 50% 50%;
  box-sizing: border-box;
  padding: 0 0.9rem;

} */
</style>
