Skip to content

Commit 53bed66

Browse files
committed
首页、关于、留言板右侧部分设置为粘性布局
1 parent 71d34ab commit 53bed66

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

src/components/MainPage/BlogIndex.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<div class="ListBottom" v-if="AticleBottom">你滑到我底线啦</div>
4646
<Pagination v-on:PaginationToParent="ValueByPagition" ref="Pagi"></Pagination>
4747
</div>
48-
<div class="BlogIndexContentRight">
48+
<div class="BlogIndexContentRight blogindex-page">
4949
<div class="Module HotArticleModule">
5050
<transition name="Fade">
5151
<img src="../../static/img/HotArticleList.jpg" v-if="DefaultGraph.HotArticlePart">

src/components/MainPage/MessageBoard.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
</div>
130130
</div>
131131
<div
132-
class="BlogIndexContentRight"
132+
class="BlogIndexContentRight messageboard-page"
133133
style="border: 1px solid #e9e9e9; border-radius: 3px"
134134
>
135135
<div
@@ -763,6 +763,12 @@ export default {
763763
opacity: 0.8;
764764
}
765765
}
766+
767+
.messageboard-page{
768+
position: sticky;
769+
position: -webkit-sticky;
770+
top: 60px;
771+
}
766772
}
767773
768774
/*移动端*/

src/static/css/AboutMe.less

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
width: 25%;
1919
margin-left: 0.5rem;
2020
border-radius: 2px;
21+
position:sticky;
22+
position: -webkit-sticky;
23+
top:72px;
2124
}
2225
.BigBlock{
2326
padding: 1rem 1rem 2rem 1rem;

src/static/css/BlogIndex.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
width: 25%;
2929
}
3030

31+
.blogindex-page{
32+
position: sticky;
33+
position: -webkit-sticky;
34+
top: -200px;
35+
}
36+
3137
.ArticleItem{
3238
margin-top: 1rem;
3339
background-color: @fore_color;

0 commit comments

Comments
 (0)