我会问我如何设置CSS来设置元素的宽度来填充其余宽度窗口屏幕而不使用度量单位(px,pt等)。如何生成宽度HTML元素来填充其余的宽度窗口
例如我有两个DIV
<div id="div1"></div>
<div id="div2"></div>
一些CSS
#div1{
width:200px;
height: 40px;
float: left;
border: 1px solid black;
}
#div2{
width: // here what i should set to get rest of window screen until 100%,
// depending on resolution. When i try set param auto this param
// work that resize my div when i put something into, but i except
// at start already set rest of window width. It is possible to set
// this value without using javascript only in CSS??
height: 40px;
float: left;
border: 1px solid black;
}
这里才是最好的解决方案。 – ZiupeX