[英]It's not possible to vertically scroll to the top of the form in a certain height dimension
我已經使用Bootstrap創建了一個基本表單,並且在重新調整屏幕大小(在高度上)時,無法滾動到表單頂部。
請查看鏈接: http : //jsbin.com/semamimitu/edit?html,css,output
請注意,當您調整高度時,在一定高度之后,可以一直向下滾動到窗體,但不能一直滾動到頂部。
即使屏幕的高度小於表單本身,如何使徽標和表單的其余部分始終可見並可以滾動?
使用JavaScript的解決方案,除了CSS之外,都還可以。
查看表單注冊中的更改
.form-register {
max-width: 320px;
position: absolute;
margin-left: auto;
margin-right: auto;
left: 0;
right: 0;
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.