方案1
.sub { height: calc(100%-100px); }
方案2:
.container { position:relative; }
.sub { position: absolute; top: 100px; bottom: 0; }
方案3:
.container { display:flex; flex-direction:column; }
.sub { flex:1; }
方案1
.sub { height: calc(100%-100px); }
方案2:
.container { position:relative; }
.sub { position: absolute; top: 100px; bottom: 0; }
方案3:
.container { display:flex; flex-direction:column; }
.sub { flex:1; }