初学者,打扰了,请问弹幕可以正常滚动,但是left属性没有生效,所有弹幕都是在最左边显示的,滚动也是从最左边开始的,而不是从右边滚动到左边,请问是什么原因导致的? danmakuList:[ {mode:1,text:"请画出受力分析(10分)",stime:2000,size:25,dur:7000,color:0xFFFFFFFF}, {mode:2,text:"这风景太漂亮了吧~",stime:1000,size:25,dur:4000,color:0xFF0000}, {mode:5,text:"前方高能,建议反复观看!!",stime:1500,size:25,dur:40000,color:0xFFFF00}, ] **html模块**: <div id="my-player" class="adp" ref="videoStyle"> <div id='my-comment-stage' class='container' ref="my-comment-stage"> </div> </div> **css模块:** .adp { position: relative; height: 100% !important; max-width: 1920px; margin: 0 auto; background-color: rgba(255, 255, 255, 0); } .container{ position: absolute; z-index: 2 !important; height: 100%; width: 100%; } ![Uploading QQ20241009-155021.png…]()
Activity
dbFlower commentedon Oct 9, 2024