【发布时间】:2016-09-07 12:04:35
【问题描述】:
我有这个 flexbox 自动扩展列 CSS 在 jsfiddle 中运行良好:http://jsfiddle.net/disgr4ce/91yfdb4z/1/
.fc {
display: -webkit-flex;
display: flex;
}
.fcRow {
-webkit-flex-direction: row;
flex-direction: row;
-webkit-justify-content: space-between;
justify-content: space-between;
-webkit-align-items: center;
align-items: center;
}
.fcColumn {
-webkit-flex-direction: column;
flex-direction: column;
height: 100%;
}
html, body {
margin:0px;
height: 100%;
}
#header {
background-color: #eee;
padding: 10px 10px;
}
.clickable {
cursor: pointer;
}
#chatLog {
-webkit-flex: 1 1 auto;
flex: 1 1 auto;
overflow-y: auto;
min-height: 0px;
padding:10px;
}
#chatFooter {
height: 40px;
padding:10px;
background-color: #eee;
display: -webkit-flex;
display: flex;
-webkit-flex-direction: row;
flex-direction:row;
}
.logInput {
padding: 10px 10px;
}
但它在我的应用程序上不起作用,尽管它与 CSS 文件的内容完全相同。当然,标记也是一样的,但是使用了 Meteor 的带有 Flow-Layout 的模板系统,它只在顶层添加了一个额外的 <div id="__flow-root">。唯一包含的是 display:block; 并且摆弄它不会改变任何东西(更好)。
还有什么我可以检查的吗?应用程序版本在这里:http://campchat.meteor.com/room/9sCa5QfW6eqZmGQxW 如您所见,它不会像 jsFiddle 那样扩展 #chatlog。什么给了?
【问题讨论】: