vue制作快捷导航栏

vue制作快捷导航栏

快捷导航 (shortcut)

结构: 通栏>版心>导航 ul
布局: flex-end

在这里插入图片描述

<template>
  <!-- 主窗体 -->
 <div class="main">
    <!-- 快捷导航 -->
    <div class="shortcut">
      <div class="wrapper">1</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{
  height: 51px;
  background-color: blue;
}

/* 一 头部区域 */

/* 二 左侧区域 */

/* 三 中部区域 */

/* 四 右侧区域 */

/* 五 底部区域 */

</style>

在这里插入图片描述

<template>
  <!-- 主窗体 -->
 <div class="main">
    <!-- 快捷导航 -->
    <div class="shortcut">
      <div class="wrapper">1</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: blue;
}

/* 一 头部区域 */

/* 二 左侧区域 */

/* 三 中部区域 */

/* 四 右侧区域 */

/* 五 底部区域 */

</style>
<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>
   
</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;
}

</style>

在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值