html - 缺少底部的网络表单

标签 html css webforms

我想在我的网站底部放置一个联系表格,但表格底部被切掉了。你可以在这里看到一个 fiddle :

http://jsfiddle.net/qKnzp/

webform的代码如下:

CSS

div.box{
margin:0 auto;
width:500px;
background:#222;
position:relative;
top:50px;
border:1px solid #262626;
}

div.box h1{ 
color:#FFF5CC;
font-size:18px;
text-transform:uppercase;
padding:5px 0 5px 5px;
border-bottom:1px solid #161712;
border-top:1px solid #161712; 
}

div.box label{
width:100%;
display: block;
background:#1C1C1C;
border-top:1px solid #262626;
border-bottom:1px solid #161712;
padding:10px 0 10px 0;
}
div.box label span{
display: block;
color:#bbb;
font-size:12px;
float:left;
width:100px;
text-align:right;
padding:5px 20px 0 0;
}

div.box .input_text{
padding:10px 10px;
width:200px;
background:#262626;
border-bottom: 1px double #171717;
border-top: 1px double #171717;
border-left:1px double #333;
border-right:1px double #333;
}

div.box .message{
padding:7px 7px;
width:350px;
background:#262626;
border-bottom: 1px double #171717;
border-top: 1px double #171717;
border-left:1px double #333;
border-right:1px double #333;
overflow:hidden;
height:150px;
}

div.box .button
{
margin:0 0 10px 0;
padding:4px 7px;
background:#CC0000;
border:0px;
position: relative;
top:10px;
left:382px;
width:100px;
border-bottom: 1px double #660000;
border-top: 1px double #660000;
border-left:1px double #FF0033;
border-right:1px double #FF0033;
}​

HTML

<form name="htmlform" method="post" action="html_form_send.php">
      <div class="box">
           <h1>Contact Form</h1>
                    <label>
                        <span>Full name *</span>
                        <input type="text" class="input_text" name="name" id="name"
                        />
                    </label>
                    <label>
                        <span>Email *</span>
                        <input type="text" class="input_text" name="email" id="email"
                        />
                    </label>
                    <label>
                        <span>Description of the product wanted *</span>
                        <input type="text" class="input_text"
                        name="subject" id="subject" />
                    </label>
                    <label>
                        <span>Estimated Quantity *</span>
                        <input type="text" class="input_text" name="quantity"
                        id="quantity" />
                        <input type="submit" class="button" value="Submit Form" />
                    </label>
                </div>

表单应该是这样的:

http://aceinfowayindia.com/blog/wp-content/uploads/2009/06/how-to-create-good-looking-form-without-table.html

谁能解释一下为什么底部不见了,为什么表单标题的样式与应有的样式不同。

非常感谢任何帮助:)

最佳答案

#wrapper {

溢出:隐藏;

}

通常代码写得不好。学习如何编写好的 html 和 css。

关于html - 缺少底部的网络表单,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14006027/

相关文章:

html - 图标符号网格是否有任何 Unicode 等效项?

javascript - 定位没有类或 ID 的特定元素

javascript - 如何在单击 jQuery 时将 +200 毫秒添加到 css 动画持续时间

c# - 在 VisulaStudio 2017 上创建和编辑 ASP.net Web 表单项目

c# - 将 Bootstrap 设计添加到网络表单

javascript - 如何用 JavaScript 获取 Screen 设置的宽度

javascript - 获取div外部上一个表的内容

html - 如何在具有相对位置的div中将具有绝对位置的div对齐到中心?

div 上的 javascript-CSS 悬停问题

javascript - jquery 选择不显示数据占位符消息