gpt4 book ai didi

html - 模态弹出窗口溢出

转载 作者:太空宇宙 更新时间:2023-11-03 17:59:53 25 4
gpt4 key购买 nike

我正在尝试在模态弹出窗口中创建一个溢出。溢出应该只用于水平滚动。但是文本跨越了弹出模式的高度。这是codepen的链接 http://codepen.io/anon/pen/AKqJf

CSS:

html,body {margin:0; padding:10px; -webkit-backface-visibility:hidden;}
img {width:100%;}
/* text-based popup styling */
.white-popup {
position: relative;
background: #FFF;
padding: 25px;
width:auto;
max-width: 400px;
height: 20px;
overflow-y:scroll;
margin: 0 auto;

}





/*

====== Zoom effect ======

*/
.zoom-in {

/* start state */
.anim {
opacity: 0;
transition: all 0.2s ease-in-out;
transform: scale(0.8);
}

&.mfp-bg {
opacity: 0;
transition: all 0.3s ease-out;
}

/* animate in */
&.mfp-ready {
.anim {
opacity: 1;
transform: scale(1);
}
&.mfp-bg {
opacity: 0.8;
}
}

/* animate out */
&.mfp-removing {

.anim {
transform: scale(0.8);
opacity: 0;
}
&.mfp-bg {
opacity: 0;
}

}

}

谢谢

最佳答案

我没有完全理解你的问题,但检查一下

.white-popup {
position: relative;
background: #FFF;
padding: 25px;
width:auto;
max-width: 400px;
height: 100px;
overflow-y:scroll;
margin-top:100px;
}

关于html - 模态弹出窗口溢出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25659507/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com