简体   繁体   English

使子级在溢出之外可见:滚动父级

[英]Make child visible outside an overflow: scroll parent

I had a calendar inside a container.我在一个容器里有一个日历。 I set the container to scrollable, but when my calendar overflow, then it was cut off.我将容器设置为可滚动,但是当我的日历溢出时,它被切断了。 How could I make it visible?我怎样才能让它可见?

pls refer to the codesandbox: https://codesandbox.io/s/sweet-cookies-xhw1m请参考代码框: https://codesandbox.io/s/sweet-cookies-xhw1m

here are my project screenshot, hope its will helper for guys to imagine what I want.这是我的项目截图,希望它能帮助人们想象我想要什么。

project sreenshot项目截图

Not sure what is your design for it, but just to make it visible, you can use position: relative on the.modal and不确定您的设计是什么,但只是为了使其可见,您可以使用position: relative on the.modal 和

position: absolute;
bottom: -50px; 

for the .input_field--date对于.input_field--date

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM