Cross-browser CSS for left align, right align AND center align on the same line

青春壹個敷衍的年華 提交于 2019-12-24 16:22:32

问题


Similar to this easy one, except how do you get a third text group to show up dead center, along with one "dead left", and one "dead right"?


回答1:


<div>
<p style="float: left; width: 33%;">stuff on the left</p>
<p style="float: left; width: 33%; text-align: center">center</p>
<p style="float: right; width: 33%; text-align: right">stuff on the right </p>
</div>


来源:https://stackoverflow.com/questions/3324757/cross-browser-css-for-left-align-right-align-and-center-align-on-the-same-line

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!