代码之家  ›  专栏  ›  技术社区  ›  Alex

CSS-绝对定位和流体分割

  •  1
  • Alex  · 技术社区  · 15 年前

    我需要做一个这样的布局:

    [250px - fixed div]  [fluid div, must expand depending on the width of the body and the 2 divs next/before it]  [250px - fixed div]
    

    这有可能吗? 所有3个凹坑的容器也是流体(100%宽度)。 所有这些div都包含背景图像(左+右+重复中心图像),并应保持在后面。

    1 回复  |  直到 15 年前
        1
  •  2
  •   Moses    15 年前

    The Holy Grail

    #container {max-width:1024px;}