什么是左对齐,右对齐两个div标签的最佳方式是什么? [英] What is the best way to left align and right align two div tags?
本文介绍了什么是左对齐,右对齐两个div标签的最佳方式是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么是右对齐和左对齐两个div标签在网页上横向彼此相邻的最好方法是什么?我想一个优雅的解决方案,如果能够做到这一点。
What is the best way to right align and left align two div tags on a web page horizontally next to each other? I would like an elegant solution to do this if possible.
推荐答案
(原谅内嵌样式:))
<div style="float: left;">Left Div</div>
<div style="float: right;">Right Div</div>
这篇关于什么是左对齐,右对齐两个div标签的最佳方式是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文