0
Follow
0
View

How do you avoid opacity of child content fonts from being affected by the parent

wang___dan 注册会员
2023-02-28 18:24
< div class = "md_content_show e397 data - v - 3967" = "" >

should be, I tried it on

img

doubo219 注册会员
2023-02-28 18:24

"mix-blend-mode" attribute to solve this problem. The mix-blend-mode property lets you set the transparency of one element without affecting other elements. You can avoid opacity by setting mix-blage-Mode :normal on the elements you want to protect.

Aaronz85 注册会员
2023-02-28 18:24

It's not hierarchical enough, so write it like this, after the layui.css that you introduced or it won't overwrite the above style

.layui-layer-tips .layui-layer-content{background-color:rgba(0,0,0,.5)}

About the Author

Question Info

Publish Time
2023-02-28 18:24
Update Time
2023-02-28 18:24