css定义第二个div. float:right或者left。 margin-top:0px 确保第二个DIV的宽度。如果宽度宽的话,会自动到下方的。 转载于:https://www.cnblogs.com/mr-wuxiansheng/p/10334226.html