Home  >  Article  >  Web Front-end  >  Questions about position:relative; overflow:hidden_html/css_WEB-ITnose

Questions about position:relative; overflow:hidden_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:17:031406browse





During production, we often encounter such a situation. Is there any way to position the inner layer relatively without setting the height of the outer layer?


Reply to the discussion (solution)

You can use relative percentages, as shown below, the height is relative to 50% of the outer layer



Statement:
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