码迷,mamicode.com
首页 > 微信 > 详细

微信小程序-通知公告滚动提示

时间:2018-08-28 13:00:49      阅读:304      评论:0      收藏:0      [点我收藏+]

标签:hidden   程序   hit   --   lin   scroll   back   ati   xss   

wxml如下:
       

<view class=‘scroll_view_border‘>
<view class="srcoll_view" bindtap="textclick">这武器那都好,就是不吃药只能战斗15秒,15秒内不是你死就是我亡,这才是90级史诗该有的王者风范!</view>
</view>

wxss如下:

 

.srcoll_view{
position: absolute;
top:0rpx;
height: 100rpx;
font-size: 30rpx;
white-space: nowrap;
line-height: 100rpx;
color: #00bff3;
animation:myfirst 20s linear infinite;
}
@keyframes myfirst
{
  0% {margin-left:750rpx;}
  100% {margin-left:-1500rpx;}
}
.scroll_view_border{
position: relative;
width: 100%;
background: rgba(0, 0, 0, 0.2);
height: 100rpx;
overflow: hidden;
}
js------没有

 

微信小程序-通知公告滚动提示

标签:hidden   程序   hit   --   lin   scroll   back   ati   xss   

原文地址:https://www.cnblogs.com/mverting/p/9547337.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!