我唯一的问题是让他们排成三横,间距相等。 显然,跨度不能有宽度和div(并且具有display:block的跨度)不会彼此相邻地出现。 建议?
<div style='width:30%; text-align:center; float:left; clear:both;'> <div style='width:30%; text-align:center; float:left; clear:both;'>是我现在有的
My only problem is making them line up three-across and have equal spacing. Apparently, spans can not have width and divs (and spans with display:block) don't appear horizontally next to each other. Suggestions?
<div style='width:30%; text-align:center; float:left; clear:both;'> Is what I have now.
最满意答案
您可以使用带有float: left; div float: left; 属性将使它们彼此相邻,但是您可能需要使用以下元素清除以确保它们不重叠。
You can use divs with the float: left; attribute which will make them appear horizontally next to each other, but then you may need to use clearing on the following elements to make sure they don't overlap.
更多推荐
发布评论