Skip to content

弹幕滚动从最左边开始的而不是从右边 #155

Description

@gy29

初学者,打扰了,请问弹幕可以正常滚动,但是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模块

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions