如何用div制作水平列表? [英] How to make a horizontal list with divs?
本文介绍了如何用div制作水平列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在做一个简单的列表,其中会有3个div。
我不能那样做,但我在这个话题中提到过:
该div显示垂直,我无法想象为什么。
你知道任何其他方式来做到这一点吗?
解决方案
如果您使用 display:inline
或 float:left
它们可能会出现水平。
I am trying to make a simple list , in which there will be 3 divs. I can not do that, although I did exactly what in this topic was mentioned :
Horizontal (inline) list in HTML/CSS with divs
The divs appear vertical and I can not imagine why.
Do you know any other way to do it?
Thank you in advance.
解决方案
If you use display: inline
or float: left
they will probably appear horizontal.
这篇关于如何用div制作水平列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文