Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在同一行中制作两个流体 div。
我希望右 div 的最小宽度为 275 像素,左 div 始终填充间隙,因此它们一起将是其容器 div 的 100% 宽度。
像这样
演示
css
.container{ width:100%; background-color:Gray; overflow:hidden; } .div1{ float:left; } .div2{ width:275px; min-width:275px; float:right; }
--
演示1