From 5907bbc09521bf209c7e31b1cd219dab5fb09d77 Mon Sep 17 00:00:00 2001 From: yvan.ni Date: Mon, 28 Jun 2021 15:38:43 +0800 Subject: [PATCH] 用css实现箭头标, 代替> 符号 --- components/diy_title/diy_title.wxml | 2 +- components/diy_title/diy_title.wxss | 13 ++++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/components/diy_title/diy_title.wxml b/components/diy_title/diy_title.wxml index e36c911..92f7796 100644 --- a/components/diy_title/diy_title.wxml +++ b/components/diy_title/diy_title.wxml @@ -19,7 +19,7 @@ {{object.title_right}} - > + diff --git a/components/diy_title/diy_title.wxss b/components/diy_title/diy_title.wxss index bfec612..e84db04 100644 --- a/components/diy_title/diy_title.wxss +++ b/components/diy_title/diy_title.wxss @@ -5,6 +5,7 @@ height: auto; display: flex; padding: 10rpx 0; + align-items: center; } /* 图片边框 */ @@ -43,7 +44,8 @@ .right_rim { min-width: 200rpx; width: auto; - display: inline-block; + display: flex; + align-items: center; } /* 右侧文字边框 */ @@ -75,3 +77,12 @@ vertical-align: top; margin-top: 12rpx } +.aa::after{ + content: ''; + display: inline-block; + width: 25rpx; + height: 25rpx; + border-top:1rpx solid #aaa; + border-right: 1rpx solid #aaa; + transform: rotate(45deg); +} -- libgit2 0.21.4