Commit 84cd6c0e0ac4af89dacce411e5e836b5977be16e

Authored by season
1 parent c97e6425

公告文字滚动显示不全及速度修改

components/diy_notice/diy_notice.wxml
... ... @@ -4,9 +4,9 @@
4 4 <image class="image_c" src="/public/static/images/model/notice.png"></image>
5 5 <view class="marquee">
6 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 10 </view>
11 11 </view>
12 12 </view>
... ...
components/diy_notice/diy_notice.wxss
... ... @@ -39,7 +39,7 @@
39 39 white-space: nowrap;
40 40 text-overflow: clip;
41 41 position: relative;
42   - font-size: 28rpx;
  42 + font-size: 24rpx;
43 43 margin-left: 50rpx;
44 44 margin-top: -45rpx;
45 45 }
... ... @@ -47,8 +47,10 @@
47 47 display: inline-block;
48 48 position: relative;
49 49 padding-right: 0px;
50   - animation: kf-marque-animation 4.5s linear infinite;
  50 + animation: kf-marque-animation 20s linear infinite;
51 51 white-space: nowrap;
  52 + line-height: 2rpx;font-size: 24rpx;
  53 +
52 54 }
53 55  
54 56 .pd_top10{margin: 10rpx 0}
... ...