From dc66ec6f3c3ae560bdcbb5e0a1790b27228205e8 Mon Sep 17 00:00:00 2001 From: inleft <inleft@qq.com> Date: Thu, 03 Mar 2022 23:33:09 +0800 Subject: [PATCH] 修复图片定位问题 --- src/components/mini/box-new-article.vue | 18 ++++++++++++++---- 1 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/components/mini/box-new-article.vue b/src/components/mini/box-new-article.vue index ebf3225..1fbb81b 100644 --- a/src/components/mini/box-new-article.vue +++ b/src/components/mini/box-new-article.vue @@ -35,7 +35,8 @@ <span class="article-meta__separator" style="margin: 0px 3px ;"> | </span> <span class="article-meta"> <a-icon type="book" /> - <router-link :to="{path:'/mdDetail',query:{id:id}}" class="article-meta__categories"> + <router-link :to="{path:'/articleList',query:{typeId:articleTypeId}}" + class="article-meta__categories"> {{articleTypeName}} </router-link> <!-- <a class="article-meta__categories" href="#"> {{tag}}</a> --> @@ -55,8 +56,12 @@ props: { "index": { default: 0, - },"id": { + }, + "id": { default: 0, + }, + "articleTypeId": { + default: null }, "isTop": { default: 0, @@ -104,6 +109,10 @@ .recent-post-item { position: relative; + + a { + position: initial; + } } .miniTag { @@ -198,9 +207,10 @@ } #recent-posts>.recent-post-item .post_cover { - width: 33%; - position: sticky; + // position: sticky; + position: inherit; + width: 33%; opacity: .8; padding: calc(1.2rem * @ahzoo-proportion) calc(0.2rem * @ahzoo-proportion); overflow: hidden; -- Gitblit v1.9.1