CSS3 布局,在固定容器内具有固定的左列和灵活的右手列

标签 css

只是想知道这对于 css 是否可行,我尝试使用一种布局,其中左侧列具有固定宽度,右侧具有固定宽度包含内的 flex 宽度。

这是图片附件

enter image description here

感谢任何建议。

最佳答案

检查是否this可以帮到你

HTML

<div class="outer">
    <div class="left">Test</div>
  <div class="right">Test</div>
</div>

CSS

*{margin: 0}
.outer {
  max-width: 1444px;
}
.left {
  float: left;
  width: 200px;
  height: 600px;
  background: red
}
.right {
  margin-left: 200px;
  background: yellow;
  height: 600px;
}

关于CSS3 布局,在固定容器内具有固定的左列和灵活的右手列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24730298/

相关文章:

java - 如何更改表列的伪类状态?

css - wordpress:删除存档上的帖子摘录但保留缩略图

javascript - 在溢出 : auto 的 div 中仅滚动一次 'var distance'

image - 全宽、有限高度图像,同时保持纵横比

css - 是否可以填充背景颜色,这样就没有白色了?我在此屏幕截图中使用 clip-path css 属性

html - 固定标题表没有对齐 <thead> 和 <tbody> 列

jquery - 如何在 Jquery Ajax 中正确引用发布的表单数据

图像的 CSS 颜色到 alpha?

HTML 列表元素 : Sharing the parent width into equal parts

javascript - 如何在经典 ASP 中显示有关下拉框值的工具提示?