Commit 5907bbc09521bf209c7e31b1cd219dab5fb09d77
1 parent
3eeb1a15
用css实现箭头标, 代替> 符号
Showing
2 changed files
with
13 additions
and
2 deletions
components/diy_title/diy_title.wxml
@@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
19 | <view class="font_right_rim"> | 19 | <view class="font_right_rim"> |
20 | <view class="caption" style='color:{{object.title_rightcolor}}'>{{object.title_right}}</view> | 20 | <view class="caption" style='color:{{object.title_rightcolor}}'>{{object.title_right}}</view> |
21 | </view> | 21 | </view> |
22 | - <view class="aa">></view> | 22 | + <view class="aa"></view> |
23 | </view> | 23 | </view> |
24 | </view> | 24 | </view> |
25 | </block> | 25 | </block> |
components/diy_title/diy_title.wxss
@@ -5,6 +5,7 @@ | @@ -5,6 +5,7 @@ | ||
5 | height: auto; | 5 | height: auto; |
6 | display: flex; | 6 | display: flex; |
7 | padding: 10rpx 0; | 7 | padding: 10rpx 0; |
8 | + align-items: center; | ||
8 | } | 9 | } |
9 | 10 | ||
10 | /* 图片边框 */ | 11 | /* 图片边框 */ |
@@ -43,7 +44,8 @@ | @@ -43,7 +44,8 @@ | ||
43 | .right_rim { | 44 | .right_rim { |
44 | min-width: 200rpx; | 45 | min-width: 200rpx; |
45 | width: auto; | 46 | width: auto; |
46 | - display: inline-block; | 47 | + display: flex; |
48 | + align-items: center; | ||
47 | } | 49 | } |
48 | 50 | ||
49 | /* 右侧文字边框 */ | 51 | /* 右侧文字边框 */ |
@@ -75,3 +77,12 @@ | @@ -75,3 +77,12 @@ | ||
75 | vertical-align: top; | 77 | vertical-align: top; |
76 | margin-top: 12rpx | 78 | margin-top: 12rpx |
77 | } | 79 | } |
80 | +.aa::after{ | ||
81 | + content: ''; | ||
82 | + display: inline-block; | ||
83 | + width: 25rpx; | ||
84 | + height: 25rpx; | ||
85 | + border-top:1rpx solid #aaa; | ||
86 | + border-right: 1rpx solid #aaa; | ||
87 | + transform: rotate(45deg); | ||
88 | +} |