文本内容溢出到较低窗口高度上的新动态列

发布于 2024-12-29 13:43:04 字数 649 浏览 1 评论 0原文

当窗口高度减小时,如何将文本内容转移到动态创建的列中?
基本上是这样的: 在此处输入图像描述

有没有 jquery/其他插件可以做到这一点?

我在开发一个水平滚动网站时碰壁了,在过去的一个月里,这个问题一直困扰着我,让我发疯。我想,这种疯狂已经堵塞了我的思维,无法进行适当的研究。

有 treesaver.js http://demo.nomadeditions .com/wide-screen/#-/wide-screen/oscar-bloggers.html;它在 IE9 中工作正常,但甚至无法在 IE8 中加载(我在 IEtester 上检查过,所以它可能是不正确的)。我对 Treesaver 的唯一问题是,每当调整窗口大小时,它都会不断重新加载,但这只是一个小问题。
如果这可以在 css 本身中完成,那就太好了;这个微不足道的问题确实不需要 JavaScript 插件,但是市场上使用的浏览器种类繁多(以及它们自己的怪异之处)迫使我首先把手伸进 js 篮子里。

How do I go about getting text content to carryover to a dynamically created column to it's right when the window height is reduced?

Basically this:
enter image description here

Is there any jquery/other plugins out there that can do this?

I hit the wall while working on a horizontally scrolling website, and this has been haunting me and driving me crazy for the past month. I guess, the madness had clogged my mind to allow proper research.

There's treesaver.js http://demo.nomadeditions.com/wide-screen/#-/wide-screen/oscar-bloggers.html; it works fine in IE9, but wouldn't even load in IE8 (I checked on IEtester so chances are it could be incorrect). The only problem I have with treesaver is it's constant re-loading whenever the window's resized but that's just a pet peeve.
It would be nice if this can be done in css itself; this trivial issue really shouldn't need a javascript plugin, but the wide array of browsers(along with their own quirkiness') used in the market forces me to dip my hand in the js basket first.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

白日梦 2025-01-05 13:43:04

您当前要求的是 W3C 候选推荐

http://www.w3.org/TR /css3-multicol/

您可以在此处查看它的实际效果:

http://www.quirksmode.org/css/multicolumn.html

坏消息是 IE 8 即使在标准模式下也不支持它。我这里没有可用的 IE 9,但如果这是一个公共站点,您可能还不需要 IE 9。

What you are asking for is currently a W3C candidate reccomendation

http://www.w3.org/TR/css3-multicol/

You can see it in action here:

http://www.quirksmode.org/css/multicolumn.html

The bad news is it's not supported by IE 8 even in standards mode. I don't have IE 9 available here, but if this is a public site, you probably can't require IE 9 yet anyway.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文