我有一个页面,其中提供了一篇长篇文章,以便于阅读。我想在宽屏上将文本分成几列,但我不想让用户一直滚动到页面底部,然后在完成每一列后再次回到顶部。
有没有办法在不使用 JavaScript 的情况下自动将文章分成垂直部分(“页面”),这些部分足够短以完全适合视口?这里有一些 ASCII 艺术来说明:
+-------------------------------------------------------------+
| === Some Title === |
| |
| You think water moves fast? it out. Now we took an oath, |
| You should see ice. It moves that I'm breaking now. We |
| like it has a mind. Like it said we'd say it was the |
| knows it killed the world snow that killed the other |
| once and got a taste for two, but it wasn't. Nature |
| murder. After the avalanche, is lethal but it doesn't |
| it took us a week to climb hold a candle to man. |
| out. Now, I don't know |
| exactly when we turned on Like you, I used to think |
| each other, but I know that the world was this great |
| seven of us survived the place where everybody lived |
| slide... and only five made by the same standards I did, |
+-------------------------------------------------------------+
| then some kid with a nail Dr. Wu inserted a gene that |
| showed me I was living in makes a single faulty enzyme |
| his world, a world where in protein metabolism. The |
| chaos rules not order, a animals can't manufacture the |
| world where righteousness is amino acid lysine. Unless |
| not rewarded. That's Cesar's they're continually supplied |
| world, and if you're not with lysine by us, they'll |
| willing to play by his rules, slip into a coma and die. |
| then you're gonna have to pay |
| the price. Do you see any Teletubbies in |
| The lysine contingency - here? Do you see a slender |
| it's intended to prevent the plastic tag clipped to my |
| spread of the animals is case shirt with my name printed on |
| they ever got off the island. it? |
+-------------------------------------------------------------+
线条代表视口的高度。列在视口的底部结束,文本流到下一列的顶部,从视口的顶部开始。一旦阅读了文本的“页面”,用户就会向下滚动到下一个并重新开始。这允许将文本拆分为列,而无需大量额外的滚动。在大屏幕上,“页面”会很高,但在小屏幕上,它们会足够短以适合视口。
一个好的解决方案不必是完美的语义,但不应该需要任何 JavaScript。