Commit 84cd6c0e0ac4af89dacce411e5e836b5977be16e
1 parent
c97e6425
公告文字滚动显示不全及速度修改
Showing
2 changed files
with
7 additions
and
5 deletions
components/diy_notice/diy_notice.wxml
| @@ -4,9 +4,9 @@ | @@ -4,9 +4,9 @@ | ||
| 4 | <image class="image_c" src="/public/static/images/model/notice.png"></image> | 4 | <image class="image_c" src="/public/static/images/model/notice.png"></image> |
| 5 | <view class="marquee"> | 5 | <view class="marquee"> |
| 6 | <view class="content"> | 6 | <view class="content"> |
| 7 | - <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;"></text> | ||
| 8 | - <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;"></text> | ||
| 9 | - <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;"></text> | 7 | + <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text> |
| 8 | + <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text> | ||
| 9 | + <text style="color: {{object.notice_color}}">{{object.noticetxt}}</text> <text style="display: inline-block; width: 590rpx;line-height:30rpx;"></text> | ||
| 10 | </view> | 10 | </view> |
| 11 | </view> | 11 | </view> |
| 12 | </view> | 12 | </view> |
components/diy_notice/diy_notice.wxss
| @@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
| 39 | white-space: nowrap; | 39 | white-space: nowrap; |
| 40 | text-overflow: clip; | 40 | text-overflow: clip; |
| 41 | position: relative; | 41 | position: relative; |
| 42 | - font-size: 28rpx; | 42 | + font-size: 24rpx; |
| 43 | margin-left: 50rpx; | 43 | margin-left: 50rpx; |
| 44 | margin-top: -45rpx; | 44 | margin-top: -45rpx; |
| 45 | } | 45 | } |
| @@ -47,8 +47,10 @@ | @@ -47,8 +47,10 @@ | ||
| 47 | display: inline-block; | 47 | display: inline-block; |
| 48 | position: relative; | 48 | position: relative; |
| 49 | padding-right: 0px; | 49 | padding-right: 0px; |
| 50 | - animation: kf-marque-animation 4.5s linear infinite; | 50 | + animation: kf-marque-animation 20s linear infinite; |
| 51 | white-space: nowrap; | 51 | white-space: nowrap; |
| 52 | + line-height: 2rpx;font-size: 24rpx; | ||
| 53 | + | ||
| 52 | } | 54 | } |
| 53 | 55 | ||
| 54 | .pd_top10{margin: 10rpx 0} | 56 | .pd_top10{margin: 10rpx 0} |