sta*_*inu 6 html css jquery html5 css3

尝试了几个方法:*将外部div作为display:table和其他所有元素作为display:table-cell.*通过使用jquery窗口调整大小来计算搜索的宽度.但是当单击窗口调整大小按钮时,它的宽度不是应该的.
任何人都知道如何使用纯CSS/CSS3或如果不是通过jquery实现此导航?
欣赏你的想法,帮助......
你去:http://jsfiddle.net/6jXcz/1/
水平缩放非常精细,与导航项目数量无关.
说明:我使用了"表"CSS规则并强制其#search宽度为100%.为了防止从得到"碎"的标识(或任何其它元件),我用white-space: nowrap的#menu和min-width上#logo.
<div id="table">
<div id="menu">
<div id="logo">LOGO</div>
<ul id="navigation"><li>Item 1</li><li>Item 2</li></ul>
<div id="search">
<input type="text" name="search">
</div>
<div id="user">Username</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
和CSS:
#table {
display: table;
width: 100%;
}
#menu {
background: grey;
line-height: 50px;
white-space: nowrap;
display: table-row;
}
#menu > * {
display: table-cell;
text-align:center;
height: 50px;
}
#logo {
min-width: 200px;
width: 200px;
}
#navigation {
list-style-type: none;
margin:0;
padding:0;
}
#navigation li {
display:inline-block;
height: 50px;
background: #999;
padding: 0 5px;
}
#search {
background: #aaa;
width: 100%;
}
#search input {
width: 98%;
padding: 0;
margin: 0;
border: none;
height: 92%;
}
Run Code Online (Sandbox Code Playgroud)