button為什么寫了absolute后就跑到頁(yè)面最下方了?
button {
??? width: 100px;
??? height: 50px;
}
.button {
??? position: absolute;
??? bottom: 0;
}
button {
??? width: 100px;
??? height: 50px;
}
.button {
??? position: absolute;
??? bottom: 0;
}
2016-12-30
舉報(bào)
2016-12-30
position:absolute是絕對(duì)定位,相對(duì)于屏幕的絕對(duì)位置,不受其他因素影響,bottom:0是距離底部0px的意思