OL标签的样式是否递减? [英] OL tag with style for decrementing?

查看:53
本文介绍了OL标签的样式是否递减?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

OL标记仍然允许使用START值,但现在已弃用。

我发现声音参考表明现在正确的技术是

to控制它与OL的风格在排队,但我没有

能够找到正确的参考。我真正想要的是一个有序的

列表,倒计时到一个。甚至可能出现负增量吗?

在现实世界中看起来不是一个荒谬的想法,但是......


(是的,我也搜索过)这些新闻组也在那里失败了...

各种关键词,如负增量和减少以及

倒计时,但没有乐趣。 ")

解决方案
凝视着我的水晶球我观察"香农雅各布"

将Sh*******************@gmail.com新闻:1172642991.695267.45650

@ a75g2000cwd.googlegroups.com:
< blockquote class =post_quotes>
OL标签仍然允许使用START值,但现在已弃用。

我发现声音参考表明现在正确的技术是

用它来控制它的风格,但我还没有找到合适的参考资料。我真正想要的是一个有序的

列表,倒计时到一个。甚至可能出现负增量吗?

在现实世界中看起来不是一个荒谬的想法,但是......


(是的,我也搜索过)这些新闻组也在那里失败了...

各种关键词,如负增量和减少以及

倒计时,但没有乐趣。 ")



这可能会有所帮助: http://www.w3.org/TR/REC-CSS2/generate.html


-

Adrienne Boswell在家

Arbpen网站设计服务
http://www.cavalcade-of-coding.info

请回复小组,以便其他人分享

Scripsit阿德里安娜博斯韦尔:

这可能帮助:<一个相对= nofollow的 href =HTTP:// www.w3.org/TR /REC-CSS2/generate.htmltarget =_ blank> http://www.w3.org/TR/REC-CSS2/generate.html



理论是存在的,但是

a)CSS 2推荐在实践中已经过时,在列出版本时,甚至没有将其引用到W3C的CSS页面上CSS; CSS 2.1草案是

我们应该使用什么,虽然它说它是一个不稳定的草案,

仅仅是正在进行的工作

b)生成的内容不适用于IE(即使是IE 7)

c)标记属性,这对于顺利实现

递减的想法是必需的数字作为列表标记,除了在

CSS 2.1中删除之外,或多或少不在任何浏览器上工作。


结论是你应该把数字作为数据包括在内(也许是使用某些服务器端技术生成它们的b
)并且可能使用带有list-style-type的< ul>

标记:没有。您可能希望将数字放在

一些< spanmarkup中,以便能够设置它们的样式;你可能需要使用

float:left以使这些元素表现为

的块元素,你可以有效地设置width属性。


-

Jukka K. Korpela(Yucca)
http://www.cs.tut.fi/~jkorpela/


Shannon Jacobs写道:


OL标签仍然允许START值,但现在已弃用。



哪个(恕我直言)对他们来说是一件非常愚蠢的事情。我坚信

相信列表开头的数字_is_语义数据和

不仅仅是一种风格选择。例如,在下面的列表中,编号

是*至关重要*:


---开始---

1 。以下几点应该得到解决


A.更多食物选择

B.更多饮料选择


2.如果无法观察到上述A点和B点,

以下C点应优先考虑


C.更好品尝蘸料。 />
---结束---


也许不是一个现实世界的例子,但我真的不能想到一个在

时刻。我在很多场合不得不使用start属性来为客户创建文档时,我当然可以说,如果没有它我就会失去



在上面的例子中,除非第二个列表实际上以C开头

然后上面的点没有任何意义,就像它留给

样式(而不是属性)然后可能不支持样式

所以列表将再次从''A'开始,所以那里是没有意义的''C''

可以参考。


这是我认为你可以打破

规则。主要是因为你_know_你正在打破他们,并且有这样做的原因。

-

Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk


上述观点不一定代表我的猫的b / b
。表达的所有观点完全属于您自己的观点。


The OL tag still allows for a START value, but that is now deprecated.
I''ve found sound references that suggest the proper technique now is
to control it with a style for the OL in quetion, but I haven''t been
able to find the proper reference. What I actually want is an ordered
list that counts down to one. Are negative increments even possible?
Doesn''t seem like a ridiculous idea in the real world, but...

(Yes, I also searched these newsgroups and also failed there...
Various keywords such as "negative increment" and "decrement" and
"counting down", but no joy.")

解决方案

Gazing into my crystal ball I observed "Shannon Jacobs"
<Sh*******************@gmail.comwriting in news:1172642991.695267.45650
@a75g2000cwd.googlegroups.com:

The OL tag still allows for a START value, but that is now deprecated.
I''ve found sound references that suggest the proper technique now is
to control it with a style for the OL in quetion, but I haven''t been
able to find the proper reference. What I actually want is an ordered
list that counts down to one. Are negative increments even possible?
Doesn''t seem like a ridiculous idea in the real world, but...

(Yes, I also searched these newsgroups and also failed there...
Various keywords such as "negative increment" and "decrement" and
"counting down", but no joy.")

This might help: http://www.w3.org/TR/REC-CSS2/generate.html

--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share


Scripsit Adrienne Boswell:

This might help: http://www.w3.org/TR/REC-CSS2/generate.html

The theory is there, but
a) the CSS 2 recommendation is in practice obsolete and isn''t even referred
to on W3C''s pages on CSS when listing versions of CSS; the CSS 2.1 draft is
what we''re supposed to use, although it says that it is an unstable draft,
mere "work in progress"
b) generated content does not work on IE (even IE 7)
c) marker properties, which would be needed for smooth implementation of the
idea of decrementing numbers as list markers, in addtion to being removed in
CSS 2.1, don''t work on any browser, more or less.

The conclusion is that you should include the numbers as data (perhaps
generating them using some server-side technique) and probably use <ul>
markup with list-style-type: none. You might wish to put the numbers inside
some <spanmarkup in order to be able to style them; you may need to use
float: left in order to make those elements behave as block elements for
which you can effectively set the width property.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/


Shannon Jacobs wrote:

The OL tag still allows for a START value, but that is now deprecated.

Which (IMHO) was a very silly thing for them to have done. I firmly
believe that the number at which a list begins _is_ semantic data and
not simply a style choice. For example, in the below list the numbering
is *crucial*:

--- start ---
1. The following points should be addressed

A. More choice of food
B. More choice of drinks

2. In cases where the above points A and B cannot be observed,
point C below should take priority

C. Better tasting dips.
--- end ---

Perhaps not a real world example, but I can''t really think of one at the
moment. I have on many occasions had to use the start attribute when
creating documents for clients, and I can certainly say that I''d have
been lost without it.

In the example above, unless the second list actually begins with ''C''
then the point above it does not make any sense, as if it were left to
styling (as opposed to an attribute) then the style may not be supported
and so the list would begin at ''A'' again, so there would be no point ''C''
to which to refer.

This is one of those cases where it is my opinion that you can break the
rules. Mainly because you _know_ you are breaking them, and have a
_valid_ reason for doing so.

--
Dylan Parry
http://electricfreedom.org | http://webpageworkshop.co.uk

The opinions stated above are not necessarily representative of
those of my cats. All opinions expressed are entirely your own.


这篇关于OL标签的样式是否递减?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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