我只能找到人们有相反问题的问题.
我希望我的固定内容超越iOS键盘.问题形象:
我希望iOS的行为像Android一样.
有没有一种简单的方法来实现这一目标?
父元素css:
.parent{
position:fixed;
top: 0;
left 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
}
Run Code Online (Sandbox Code Playgroud)
按钮css:
.button{
position:fixed;
left 0;
right: 0;
bottom: 0;
width: 100%;
height: 5rem;
}
Run Code Online (Sandbox Code Playgroud)