gpt4 book ai didi

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

转载 作者:太空宇宙 更新时间:2023-11-03 23:33:29 24 4
gpt4 key购买 nike

只是想知道这对于 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com