我有一个"有序列表",其中包含大约100个"列表项".这个ol使我的页面很长,用户必须滚动太多.
如何让UL显示如下:
1. 6. 11.
2. 7. 12.
3. 8. 13.
4. 9. 14.
5. 10. 15.
Run Code Online (Sandbox Code Playgroud) 我正在开发一个网站,我的客户希望各种文章的文本分为两列.有点像在报纸上?所以它看起来像:
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.
Run Code Online (Sandbox Code Playgroud)
[我非常努力想要写出来的东西]
有没有办法只用CSS就可以做到这一点?我宁愿不必使用多个div.我也愿意使用JavaScript,但我真的很糟糕,所以请帮助我们.我想也许JavaScript可以计算内容div中有多少<p>,然后根据它移动它们的后半部分?也许?建议将不胜感激:D