Skip to content

Commit 0c2a1ee

Browse files
committed
修改顶部导航,改成fixed定位
1 parent fcccaa7 commit 0c2a1ee

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/components/listContent.vue

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
<style lang="scss" scoped>
3939
.list-content{
4040
position: relative;
41+
padding-top:40px;
4142
.list-item{
4243
position: relative;
4344
font-size:0;

src/components/listHeader.vue

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div>
2+
<div class="fixed">
33
<div class="nav">
44
<ul>
55
<li :class="navSelect=='all'?'active':''" @click="selectTab" data-navSelect='all'>全部</li>
@@ -27,9 +27,16 @@
2727
}
2828
</script>
2929
<style lang="scss" scoped>
30+
.fixed{
31+
position:fixed;
32+
width:100%;
33+
top:0;
34+
z-index:999;
35+
}
3036
.nav {
3137
color: #fff;
3238
background-color: #333;
39+
display:block;
3340
ul{
3441
font-size: 0;
3542
li{

0 commit comments

Comments
 (0)