渲染列表分为两列 [英] rendering lists in two columns

查看:131
本文介绍了渲染列表分为两列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!


是否有可能呈现


< ol>

< li>一个< / li>

< li>二< / li>

...

< / ol>


在两列中仅使用CSS?


问候

Timo

解决方案

2004年5月8日星期六20:20:12 +0200,Timo Nentwig< tc*@spamgourmet.org>

写道:

嗨!

是否有可能呈现

< ol>
< li> one< / li>
< ; li>两个< / li>
......
< / ol>

在两列中仅使用CSS?

关心
Timo



不是。您必须拆分为两个定位列表,并使用

已弃用的属性< li>在

秒列表中正确地重新开始编号以实现此目的。


在文章中Neal写道:

On周六,2004年5月8日20:20:12 +0200,Timo Nentwig< tc*@spamgourmet.org>
写道:

嗨!

< ol>
< li>一个< / li>
< li>二< / li>
。 ..
< / ol>

在两列中仅使用CSS?

问候
Timo

不是真的。




是的,请先让数字从左到右,然后再下来。

不幸的是,这不适合有序列表,因为人们倾向于将b $ b读取列表,然后查看其他列。

你必须分成两个定位列表并使用
不推荐使用的属性对于< li>在
第二个列表上正确地重新开始编号以实现此目的。




不一定,但这是最常见的方式。无论如何,除了任何额外的

HTML:
http://www.student.oulu.fi/~laurirai...st/ol2col.html

适用于Opera 7.5b1,应该可行Opera 6+和mozilla以及

支持多个+的任何内容。选择器。


-

Lauri Raittila< http://www.iki.fi/lr> < http://www.iki.fi/zwak/fonts>

我在找工作Etsin ty?t?


Lauri Raittila写道:

http://www.student.oulu.fi/~laurirai...st/ol2col.html



酷!谢谢!


Hi!

Is it possible to render

<ol>
<li>one</li>
<li>two</li>
...
</ol>

in two columns using only CSS?

Regards
Timo

解决方案

On Sat, 08 May 2004 20:20:12 +0200, Timo Nentwig <tc*@spamgourmet.org>
wrote:

Hi!

Is it possible to render

<ol>
<li>one</li>
<li>two</li>
...
</ol>

in two columns using only CSS?

Regards
Timo


Not really. You''d have to split into two positioned lists and use a
deprecated attribute for <li> to restart the numbering properly on the
second list to accomplish this.


In article Neal wrote:

On Sat, 08 May 2004 20:20:12 +0200, Timo Nentwig <tc*@spamgourmet.org>
wrote:

Hi!

Is it possible to render

<ol>
<li>one</li>
<li>two</li>
...
</ol>

in two columns using only CSS?

Regards
Timo

Not really.



Yes, exept whan having numbers going left to right first, then down.
Unfortunately that does not suit well on ordered list, as people tend to
read list down, and then look other column.
You''d have to split into two positioned lists and use a
deprecated attribute for <li> to restart the numbering properly on the
second list to accomplish this.



Not necessarily, but that is most sencible way. Anyway, whitout any extra
HTML:
http://www.student.oulu.fi/~laurirai...st/ol2col.html
Works on Opera 7.5b1, should work Opera 6+ and mozilla and anything that
supports more than one "+" selectors.

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
I''m looking for work | Etsin ty?t?


Lauri Raittila wrote:

http://www.student.oulu.fi/~laurirai...st/ol2col.html



COOL! Thanks!


这篇关于渲染列表分为两列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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