如何用CSS控制动态内容的流程? [英] How to control flow of dynamic content with CSS?

查看:76
本文介绍了如何用CSS控制动态内容的流程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。对于我正在处理的网站,我已经获得了某些页面的模型(静态HTML)

。客户希望这些页面看起来与现在完全一样。问题是内容是动态的,它来自数据库。


我的问题 - 用CSS(因为HTML表格我不喜欢)我认为它是'b
可能)我怎样才能让我的文字流动在两列?例如。如果

是100行内容,我希望50在第1列,并且

50在另一行。如果有200,100 / 100.你明白了。


我会打赌这很简单,但我找不到答案.. 。


非常感谢!

syg

Hello all. I have been given mock-ups (in static HTML) of some pages
for a site I am working on. The client would like these pages to look
exactly as they do now. The problem is that the content is dynamic, it
comes from a database.

My question -- with CSS (because with HTML tables I don''t think it''s
possible) how can I make my text "flow" in two columns? eg. If there
are 100 lines of content, I would like 50 to be in the 1st column, and
50 in the other. If there are 200, 100 / 100. You get the idea.

I''ll just bet it''s simple, and yet I can''t find the answer ...

Many thanks!
syg

推荐答案

Robert Bowen写道:
Robert Bowen wrote:
我的问题 - 使用CSS(因为使用HTML表我不认为它是可能的)我怎样才能使我的文本流动?在两列?例如。如果有100行内容,我希望50在第1列,而在另一行中是50。如果有200,100 / 100.你明白了。

我会打赌它很简单
My question -- with CSS (because with HTML tables I don''t think it''s
possible) how can I make my text "flow" in two columns? eg. If there
are 100 lines of content, I would like 50 to be in the 1st column, and
50 in the other. If there are 200, 100 / 100. You get the idea.

I''ll just bet it''s simple




否, 它不是。现在CSS中没有自动列流控制。为什么

应该是什么?

-

Johannes Koch

in te domine speravi;非永久性的东西。

(Te Deum,4分。)



No, it is not. There is no automatic column flow control in CSS now. Why
should it be?
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)


Johannes Koch< ko ** @ w3development.de>写道:
Johannes Koch <ko**@w3development.de> wrote:
Robert Bowen写道:
Robert Bowen wrote:
我的问题 - 用CSS(因为有HTML表我不要认为这是可能的)我怎样才能使我的文字流动?在两列?例如。如果有100行内容,我希望50在第1列,而在另一行中是50。如果有200,100 / 100.你明白了。
我会打赌它很简单
My question -- with CSS (because with HTML tables I don''t think it''s
possible) how can I make my text "flow" in two columns? eg. If there
are 100 lines of content, I would like 50 to be in the 1st column, and
50 in the other. If there are 200, 100 / 100. You get the idea. I''ll just bet it''s simple



不,它不是。


我也不这么认为。听起来像服务器端编程,而不是
。使用xslt我想你可以使用count并保持递归

计数器的一半,然后分解为新的< td>或者其他什么,

假设您不想对子类别或块进行分组。


现在CSS中没有自动列流控制。为什么
应该是什么?


No, it is not.
I wouldn''t think so, either. Sounds like server side programming,
rather. With xslt I supposed you could use count and keep a recursive
counter to half of that, and then break to new <td> or whatever,
assuming you don''t want to group subcategories or blocks.

There is no automatic column flow control in CSS now. Why
should it be?




Float有点像那样。并且NN曾经具有< multicol>。无论是专有标签还是未来的CSS,似乎都是合乎逻辑的东西。

样式应该是关于演示方面和外观,
$ b $毕竟,定位,盒子模型和所有这些?拥有文本处理器

列支持,看起来非常一致。而且我的意思是,如果NN可以支持multicol,有水槽宽度,早在90年代中期就可以支撑NN 3,它就不会像'N $ 3那样''完成。 CSS3指定

在分页符的情况下将选项应用于方框,例如



Float is kind of like that. And NN used to have <multicol>. It seems
the logical thing, either for proprietary tags or some future CSS.
Styles are supposed to be about the presentation side and appearance,
after all, positioning, box models and all that? Having text processor
column support, as it were, seems very consistent with that. And I
mean if NN could support multicol, with gutter widths, as far back as
NN 3 in the mid 90s, it''s not like it can''t be done. CSS3 specifies
that options be applied to boxes in the case of page breaks, for ex.


Robert Bowen写道:
Robert Bowen wrote:
我正在为一个网站提供某些页面的模型(静态HTML)
我正在努力。客户希望这些页面看起来与他们现在完全一样。


因此页面必须完全像现在一样出现。在IE浏览器中,Opera,Lynx

(那会很难)和HPR(那会更难)?

问题是内容是动态,它来自数据库。


问题是客户的不切实际的需求。内容是动态的b
不会影响它的演示。

我怎样才能使我的文字流动在两栏中?

我会打赌它很简单
I have been given mock-ups (in static HTML) of some pages for a site
I am working on. The client would like these pages to look exactly as
they do now.
So the pages must appear "exactly as they do now" in IE, Opera, Lynx
(that''ll be hard), and HPR (that''ll be even harder)?
The problem is that the content is dynamic, it comes from a database.
The problem is an unrealistic demand by the client. That the content is
dynamic does not affect its presentation.
how can I make my text "flow" in two columns?

I''ll just bet it''s simple




你愿意下注多少钱? ;-)报纸样式列太多

如果你问我很难尝试。有一个专栏建议用于css 3的列流量很多,但是这个提案需要多年才能支持
,谁知道列是否能够存活到最后

推荐?


-

Brian(从我的地址中删除无效给我发电子邮件)
http://www.tsmchughs.com/


这篇关于如何用CSS控制动态内容的流程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆