Home > Web Front-end > HTML Tutorial > How to solve the problem of parent div being transparent and child div being transparent? _html/css_WEB-ITnose

How to solve the problem of parent div being transparent and child div being transparent? _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:50:26
Original
1233 people have browsed it

It is said on the Internet that the position attribute of the child div is set to relation. This method is not effective for the parent div using position:relation. However, my parent div has already used position:relation. In this case, the setting in the child div will be will lose its effect. Are there any other solutions?


Reply to discussion (solution)

Use alpha transparency,
http://leegorous.net/tools/bg-alpha.html
Generate with this tool.

Add a layer inside the parent
This layer is transparent
so that the others will not be transparent
This layer only needs to have the same size background image as the parent

Use alpha transparency,
http://leegorous.net/tools/bg-alpha.html
Use this tool to generate.


Useful! Compatible! grateful!
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template