如何在 html/css 中实现这一点:
Client: Sales person:
John Smith Mike Anderson
所以基本上我需要两个垂直平铺在页面左侧的输入和右侧相同的输入。
最佳答案
你有尝试过吗?只需使用花车就可以了
HTML
<div class="left"></div>
<div class="right"></div>
<div style="clear: both;"></div>
CSS
.left {
float: left;
}
.right {
float: right;
}
如果是表格格式,最好使用表格而不是 div
关于css - float +垂直对齐,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16080140/