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

viewerjs/dist/viewer.css中的background-color写法有问题? #611

Closed
spencer1994 opened this issue Sep 4, 2023 · 0 comments
Closed

Comments

@spencer1994
Copy link

background-color: rgba(0, 0, 0, 50%)
background-color: rgba(0, 0, 0, 80%)
css代码中有关背景色的写法,rbga中的a应该是0-1之间的一个小数,用百分比的话在有些手机上无法正确的展示。
应该修改为
background-color: rgba(0, 0, 0, 50%) ---> background-color: rgba(0, 0, 0, 0.5)
background-color: rgba(0, 0, 0, 80%) ---> background-color: rgba(0, 0, 0, 0.8)

https://www.w3.org/TR/css-color-3/#transparency

https://developer.mozilla.org/zh-CN/docs/Web/CSS/opacity

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

1 participant