我需要你的帮助。获取2个相邻的(并排)相邻的fieldsets
我的想法是在页面上有两个字段集,它们的页面宽度为100%,彼此相邻。浏览器的选择是(IE10)
现在,它似乎并不符合我希望他们做的事情。
现在看来,它们仍然互相堆叠在一起。
我怎样才能很好地并排获取字段集?
这里发生了什么事的快速PIC:
下面是标记:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<style type='text/css'>
fieldset {
padding: 3px;
width: 300px;
float: left;
}
#field1 {
width: 70%;
}
#field2 {
width: 30%;
}
label {
float:left;
font-weight:bold;
}
input {
width: 100%;
box-sizing:border-box;
}
</style>
</head>
<body>
<fieldset id="field1">
<legend>Message Centre</legend>
<input type="text">
</fieldset>
<fieldset id="field2">
<legend>File Number</legend>
<input type="text">
</fieldset>
</body>
</html>
看到这个帖子,这是一个相当类似的问题: http://stackoverflow.com/questions/22696467/form-w ith-two-columns/22696576#22696576 – Pete