-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
当 container 中的内容需要通过 Axios 动态从 API 获取时,由于从获取数据到渲染完成,container 的高 度一直保持固定,故会出现 container 实际内容把高度“撑”到 100% 以上时,渲染器仍以为 container 高 度为设定的 min-height 值,此时 Footer 也依旧在 100% 的位置,而不是意料中的页脚。 因此,为了使得 Footer 始终处于页脚,此 commit 在内容 slot 外的 container 改为两层。如此,数据加 载把 inner-container 的高度“撑”起来之后,outer-container 也能够获得完整高度,而不是像之前固定在 100%,从而使得 Footer 也能顺应 outer-container 的高度变化而正常位于页脚。 同时,此 commit 将 Footer 的边距的实现从 p 的 margin 改为了自身的 padding,防止在 outer-padding 高度大于 100% 时,下边距被浏览器吞掉。 Signed-off-by: crrashh1542 <kotsuki@crrashh.com>
- Loading branch information
1 parent
99e9a4e
commit e7dc34b
Showing
2 changed files
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters