footer 無法固定在底部
来源:6-8 实战产品瓷砖组件
慕数据7359240
2020-02-12
如題:
在home-container.component.css增加如下的style但是footer還是無法固定、請問還有那裡要注意的嗎
.main {
flex-grow: 1;
overflow-y: auto;
overflow-x: hidden;
scroll-behavior: smooth;
-webkit-overflow-scrolling: touch;
height: calc(100% - 3rem);
}
後來下載老師的代碼下來跑發現也是一樣無法置底
目前angular的版本為
Package Version
@angular-devkit/architect 0.803.22
@angular-devkit/core 8.3.22
@angular-devkit/schematics 8.3.22
@schematics/angular 8.3.22
@schematics/update 0.803.22
rxjs 6.4.0
写回答
2回答
-
可以在 src/app/home/components/home-container/home-container.component.css 的给 :host 添加一个 overflow-y:hidden
git 代码中修改了这个bug
112020-02-13 -
慕数据7359240
提问者
2020-02-12
““ ““
00
相似问题
樣板 html 無法出現提示
回答 2
请问老师关于双向绑定的问题
回答 1