Commit 5907bbc09521bf209c7e31b1cd219dab5fb09d77
1 parent
3eeb1a15
用css实现箭头标, 代替> 符号
Showing
2 changed files
with
13 additions
and
2 deletions
components/diy_title/diy_title.wxml
components/diy_title/diy_title.wxss
| ... | ... | @@ -5,6 +5,7 @@ |
| 5 | 5 | height: auto; |
| 6 | 6 | display: flex; |
| 7 | 7 | padding: 10rpx 0; |
| 8 | + align-items: center; | |
| 8 | 9 | } |
| 9 | 10 | |
| 10 | 11 | /* 图片边框 */ |
| ... | ... | @@ -43,7 +44,8 @@ |
| 43 | 44 | .right_rim { |
| 44 | 45 | min-width: 200rpx; |
| 45 | 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 | 77 | vertical-align: top; |
| 76 | 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 | +} | ... | ... |