Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gy29 opened this issue Oct 9, 2024 · 1 comment
Open

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

gy29 opened this issue Oct 9, 2024 · 1 comment

Comments

@gy29
Copy link

gy29 commented Oct 9, 2024

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

@dbFlower
Copy link
Contributor

dbFlower commented Oct 9, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants