用纯CSS做这样的事情怎么样?顺便说一下……你知道输入字段和搜索按钮的具体尺寸吗?如果我知道一些尺寸,我可能会做一点清洁工.无论如何,看看演示……
HTML
CSS
#wrap {
min-width: 375px;
position: relative;
}
#fields {
float: left;
position: relative;
}
#left {
height: 15px;
width: 150px;
float: left;
position: relative;
}
#right {
height: 15px;
width: 150px;
margin-left: 5px;
float: left;
position: relative;
}
#bottom {
height: 15px;
width:309px;
margin-top: 5px;
position: relative;
}
#search-button {
position: relative;
left: 15px;
top: 12px;
}
.clear {
clear: both;
}
我希望这有帮助.