【发布时间】:2013-12-08 16:17:44
【问题描述】:
我已尽一切努力使我的输入表单位于页面中心。
这就是我的代码的样子:
<!DOCTYPE html>
<html>
<head>
<title>Pizza Order</title>
<style>
.container {
width: 500px;
clear: both;
margin-right:50%;
}
input {
width: 100%;
clear: both;
}
.what {
font-size:35px;
}
</style>
<body>
<div class="container">
<form>
<p>Name<input type="text" name="name"></p>
<p>Last Name<input type="text" name="lastname"></p>
<br>
<p class="what">Pick your crust:</p>
<input type="checkbox">Thick
<input type="checkbox">Thin
<input type="checkbox">Cheesy
</form>
</div>
</body>
</html>
有什么想法吗?
(在我有更多详细信息之前不会让我发布:DFKJSDFKLJD:FLKJDFLJDFKJDSFLKDSJF:DLSKFJ;laksjflkdjdetailsdetailsdetailsDETAILS)
【问题讨论】:
-
所以您希望整个表单居中?还是只是输入?