【问题标题】:two fluid divs in the same line - right div with min-width同一行中的两个流体 div - 具有最小宽度的右 div
【发布时间】:2013-10-08 19:01:10
【问题描述】:

我想在同一行中制作两个流体 div。

我希望右侧 div 的最小宽度为 275 像素,左侧 div 始终填充空白,这样它们两个一起将是其容器 div 的 100% 宽度。

【问题讨论】:

标签: html css responsive-design


【解决方案1】:

这样

demo

css

.container{
    width:100%;
    background-color:Gray;
    overflow:hidden;
}
.div1{
    float:left;
}
.div2{
    width:275px;
    min-width:275px;
    float:right;
}

--

demo1

【讨论】:

  • 我希望正确的 div(div2) 能够大于 275px,但不能小于 275px。
猜你喜欢
  • 2017-01-06
  • 2013-06-17
  • 2012-02-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-05-02
  • 1970-01-01
相关资源
最近更新 更多