-
-
Notifications
You must be signed in to change notification settings - Fork 260
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
Add a background opacity in the subtitles #612
Comments
You can add additional styles: .art-subtitle p {
background: rgb(0 0 0 / 50%);
} |
What is your artplayer version? |
5.0.9 |
My test here is fine. https://codesandbox.io/s/eager-glade-5n5r43?file=/src/index.mjs |
|
This applying the style to the subtitle container, not the subtitle row. This is different. |
This is my full code, may i know where should i put those code? |
https://codesandbox.io/s/eager-glade-5n5r43?file=/src/index.mjs Add the style in your own css file |
Yes, when "escape: false" is set, ".art-subtitle p" will be invalid. At this time, the style of the subtitle line cannot be modified unless your subtitle file has tags:
|
Hi,
Can add a background opacity in the subtitles setting? It can help with seeing the subtitles more clearly without using too much focus.
The text was updated successfully, but these errors were encountered: