我想在我的侧边栏中添加一些图片,但它们不会随着容器/窗口的大小改变而改变大小。
如果我调整窗口大小,图像将位于中间区域下面。
body{ background: grey }
#container{ width: 100%; height: 100%; text-align: center }
#sidebar{ margin: 0; padding: 0; float: left; width: 5%; height: 100%; background: rgba( 255, 255, 255, 0.8 ); border-radius: 3px; box-shadow: 3px 3px 3px 3px #333 }
#interface{ display: inline-block; margin: 0 auto; width: 94%; height: 100%; background: rgba( 255, 255, 255, 0.8 ); border-radius: 3px; box-shadow: 3px 3px 3px 3px #333 }
#icon_1{ max-width: 100%; max-height: 100% }