作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的注册表有一个降级问题,我已经尝试了我在谷歌上找到的所有方法,但没有任何效果。
我的 DOB 部分分为 3 个不同的输入框,我试图将右边的列放在左边的旁边,但只要我在上面添加任何样式,年份部分就会下降。
我尝试了很多不同的变体; float ,显示,没有任何作用。我还添加了额外的框,它总是在前 2 个框之后发生下降。
当我尝试设置样式时,请注意年份下降:
无论顺序如何,总是在 2 之后下台:
HTML代码:
<div id="regforms">
<form method="post" action="register.php" name="registerform" id="registerform">
<fieldset2>
<div id="regforms1">
<label for="username"></label><input type="text" name="username" id="username" placeholder="Username"/><br />
<label for="password"></label><input type="password" name="password" id="password" placeholder="Password"/><br />
<label for="email"></label><input type="text" name="email" id="email" placeholder="Email"/><br />
<input type="submit" name="register" id="login" value="Register" />
</div>
<div id="regforms2">
<label for="name"></label><input type="text" name="name" id="name" placeholder="Name"/><br />
<div id="dob">
<label for="dobm"><input type="text" name="month" id="month" placeholder="MM"/><br />
<label for="dobd"><input type="text" name="day" id="day" placeholder="DD"/><br />
<label for="dobd"><input type="text" name="day" id="day" placeholder="DD"/><br />
<label for="dobd"><input type="text" name="day" id="day" placeholder="DD"/><br />
<label for="doby"><input type="text" name="year" id="year" placeholder="YYYY"/><br />
</div>
</div>
</fieldset3>
</form>
</div>
CSS:
#regforms {
margin-top:200px;
border: 0;
display:block;
width:600px;
}
#regforms1 {
padding-right:25px;
width:275px;
float:left;
}
#regforms2 {
width:275px;
float:right;
}
#dob {
}
#month{
width:5%;
margin-right:5px;
}
#day{
width:10%;
margin-right:5px;
}
#year{
width:10%;
margin-right:5px;
}
最佳答案
正如 Aligarian 所说,您只需要删除 <br/>
标记,尽管 您似乎没有关闭 <label>
DOB 字段中的标记;你应该关闭它们。
关于php - 输入降压,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14561638/
如何指定平台链接器标志: 安卓 Mac OS X x86_64 Linux x86_64 在一个 cxx_library 目标中? 最佳答案 像这样的东西: platform_linker_flags
在我的站点中,我有两个 div - 右侧和左侧。两者都包含在包装器 div 中。这是我的代码: #wrapper{ width:1000px; height:750px; m
我是一名优秀的程序员,十分优秀!