开发者

CSS Overflow Property Question

开发者 https://www.devze.com 2023-01-27 08:45 出处:网络
So I have a <div>. I would like to turn the css style overflow:visible on all content that pass through the top of the <div> and turn overflow:hidden on all content that is below the div.

So I have a <div>. I would like to turn the css style overflow:visible on all content that pass through the top of the <div> and turn overflow:hidden on all content that is below the div. Is thi开发者_开发知识库s possible?

CSS Overflow Property Question


Why don't you wrap all that is below your <div> in another <div> and make this last one overflow:hidden.

Does this answer your question?

Good luck!

EDIT:

Do you meen something like this example?


Do you mean this

<style>
div { overflow:visible  } 
.Invisible { overflow:hidden } 
</style>

<div>123</div>
<div>123</div>
<div>123</div>
<div class="Invisible">Invisible</div>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号