我有一个包含变量数量元素的 ul
列表。当 li 的宽度超过列表的单行容纳范围时,它会断行并开始在下一行上呈现 li,因此我会得到类似以下的结果:
x - 代表列表中的元素
| - 代表列表边界或限制列表宽度的任何内容
|xxxxxxxxx|<- elements reached the end of container and remaining elements will be rendered below
|xxxx |
我需要的是从底部向上呈现元素,这样我就可以得到:
|xxxx |
|xxxxxxxxx|<- elements reached the end of container and remaining elements will be rendered above
你觉得这可能吗?
下面是一些示例代码
<ul>
<li>Some content</li>
<li>Other content</li>
<li>ContentContent</li>
<li>Zawartość Contentu</li>
</ul>
目前,它没有CSS。我可以添加任何你建议以按底部-顶部顺序呈现的内容。类似于float:bottom
,但不幸的是它不存在。
<br />
? - Armin