怎样让两个DIV在同一水平线上面显示

 

css定义第二个div.
float:right或者left。
margin-top:0px
确保第二个DIV的宽度。如果宽度宽的话,会自动到下方的。

 

posted @ 2019-01-29 15:14  Mr_伍先生  阅读(2216)  评论(0编辑  收藏  举报