例如,如果我想要 2 行 6 个文本框和 1 行初始文本框,我如何使用 CSS 定义文本框之间的高度/空间,以便它们保持一致的间距。
还是我应该只使用一张桌子?
Check this fiddle - http://jsfiddle.net/g4CWC/34/
For each textbox provide css with same margin, For instance:
.textbox { margin:10px }
You can add all the textboxes in a <div>
and provide css as
div{margin:auto;}
Now If you resize the window spaces between the text box will remain the same.