表单Form 一个例子就够了 3.3

一个具体例子将

``` CSS

body {
background: #efe5d0 url(images/background.gif) top left;
margin: 20px;
}

form {
display: table;
padding: 10px;
border: thin dotted #7e7e7e;
background-color: #e1ceb8;
}

div.tableRow {
display: table-row;
}

div.tableRow > p, div.tableRow > label, div.tableRow > input {
display: table-cell;
vertical-align: top;
padding: 5px;
}
div.tableRow label:first-child {
text-align: right;
}
form textarea {
display: table-cell;
width: 300px;
height:50px;
}
legend {
font-weight: bold;
}```

来自《Head First HTML&CSS》14章

你可能感兴趣的:(表单Form 一个例子就够了 3.3)