我目前正在开发一个网站,我的客户希望各种文章的文本溢出到两列中。有点像在报纸上?所以它看起来像:
Today in Wales, someone actually Nobody was harmed in
did something interesting. the incident, although one
Authorities are baffled by this elderly victim is receiving
development and have arrested the counselling.
perpetrator.
[我想写点东西的尝试真的很糟糕]
有没有办法只用 CSS 来做到这一点?我宁愿不必使用多个 div。我也对使用 JavaScript 持开放态度,但我 - 真的 - 不擅长,所以我们将不胜感激。我在想也许 JavaScript 可以计算内容 div 中有多少 <p>,然后根据它移动它们的后半部分以向右浮动?也许?建议将不胜感激:D