gpt4 book ai didi

jquery - 如何创建底部切换栏?

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

我创建了这个抽屉,但我不知道如何将它移动到右下角,以及当您打开它时,内容会从底部出现。

http://jsfiddle.net/d150x4w1/

html {
text-align: center;
margin: 0;
}

.button {
background-color: #a11544;
width: 150px;
height: 45px;
float: right;
-moz-border-radius-topleft: 25px 25px;
-moz-border-radius-topright: 25px 25px;
border-top-left-radius: 25px 25px;
border-top-right-radius: 25px 25px;
color:#fff;
text-align: center;
}

.drawer-inside {
height: 0;
width: 100%;
margin: 0 auto;
overflow: hidden;
transition: height .4s ease;
background: #c3c3c3;
}
.drawer-inside.openup {
height: 210px;
transition: height .7s ease;
}

最佳答案

将按钮移到顶部(在 html 中)

添加以下CSS规则

.drawer {
position:fixed;
bottom:0;
right:0;
width:100%;
}
.drawer-appear{clear:both;}

演示在 http://jsfiddle.net/j5xoe8xg/

关于jquery - 如何创建底部切换栏?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28190096/

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