表单布局

原文地址
表格布局的几种方式

1.表格

2.floated Label

label { 
clear: left; 
float: left; 
width: 7em; /* or whatever length suits */
}

3.Relative form fields

label { 
display: block; 
margin-bottom: -1em;
}
input { 
display: block;
 position: relative;
 left: 7em;
 top: -0.5em;
}

你可能感兴趣的:(表单布局)