使用CSS在有序列表中设置起始编号 [英] Using CSS to set start number in an ordered list
问题描述
我想使用CSS获取一个有序列表,以一个其他
开头而不是1或等价物。
我有一个列表的东西这是在一年的过程中发生的。太多
很长一个列表没有帮助,所以我只在
一次显示3个月的项目。这些物品必须根据年份进行订购,IOW I
不能在4月份列出#1的东西。
在HTML之后前几个月我只使用这种代码:
< ol start =" 14" type =" 1"然后继续。
我看到开始了在HTML 4.01中不推荐使用该属性。我不知道如何插入我的css样式表以获得一个有序的列表
从我指定的数字开始。有什么建议吗?
2008年9月12日星期五,一些老的html fumbler写道:
在前几个月的HTML中我只使用这种代码:
< ol start =" 14" type =" 1"然后继续。
有什么建议吗?
使用HTML 4.01 Transitional并保留START属性。
-
在记忆中Alan J. Flavell
http://www.alanflavell.org.uk/charset/
< blockquote> 9月12日,9:38 * am,一些旧的html fumbler< fumb ... @nospam.invalid>
写道:
我想用CSS来获得一个有序的列表,以一个其他的东西开始,而不是一个或等价的
。
我有一个列表的东西这是在一年的过程中发生的。太多
很长一个列表没有帮助,所以我只在
一次显示3个月的项目。这些物品必须根据年份进行订购,IOW I
不能在4月份列出#1的东西。
在HTML之后前几个月我只使用这种代码:
< ol start =" 14" type =" 1"然后继续。
我看到开始了在HTML 4.01中不推荐使用该属性。我不知道如何插入我的css样式表以获得一个有序的列表
从我指定的数字开始。有什么建议?
您还可以在CSS中将类设置为{display:none},并在此类中包含
过时的行。我认为这会奏效。任何人
肯定知道吗?
有用的人写道:
9月12,9:38 am,一些旧的html fumbler< fumb ... @nospam.invalid>
写道:
>我看到开始"在HTML 4.01中不推荐使用该属性。我不知道如何插入我的css样式表以获得一个有序列表来从我指定的数字开始。有什么建议?
您还可以在CSS中将类设置为{display:none},并在此类中包含
过时的行。我认为这会奏效。任何人
肯定知道吗?
嗯?
您是否建议使用''display:none''来隐藏"已弃用的
attributes''start =" 14"类型= QUOT 1 QUOT;?然后不,绝对没有,它只会
阻止OL完全显示。
-
小心,
Jonathan
-------------------
小工作室
http://www.LittleWorksStudio.com
I want to use CSS to get an ordered list to start with something other
than a 1 or equivalent.
I have a list of things that happen during the course of a year. Too
long a list is not helpful, so I only show maybe 3 months of items at
a time. The items have to be ordered according to the year, IOW I
can''t list something in April as being #1.
In HTML after the first couple of months I just use this sort of code:
<ol start="14" type="1"and go on.
I see that the "start" attribute is deprecated in HTML 4.01. I don''t
know what to plug into my css stylesheet to get an ordered list to
start at a number I designate. Any suggestions?
On Fri, 12 Sep 2008, some old html fumbler wrote:
In HTML after the first couple of months I just use this sort of code:
<ol start="14" type="1"and go on.
Any suggestions?Use "HTML 4.01 Transitional" and keep the START attribute.
--
In memoriam Alan J. Flavell
http://www.alanflavell.org.uk/charset/
On Sep 12, 9:38*am, some old html fumbler <fumb...@nospam.invalid>
wrote:I want to use CSS to get an ordered list to start with something other
than a 1 or equivalent.
I have a list of things that happen during the course of a year. Too
long a list is not helpful, so I only show maybe 3 months of items at
a time. The items have to be ordered according to the year, IOW I
can''t list something in April as being #1.
In HTML after the first couple of months I just use this sort of code:
<ol start="14" type="1"and go on.
I see that the "start" attribute is deprecated in HTML 4.01. I don''t
know what to plug into my css stylesheet to get an ordered list to
start at a number I designate. Any suggestions?You could also set a class to {display: none} in the CSS and include
the obsolete lines in this class. I think this would work. Anyone
know for sure?
Helpful person wrote:On Sep 12, 9:38 am, some old html fumbler <fumb...@nospam.invalid>
wrote:
>I see that the "start" attribute is deprecated in HTML 4.01. I don''t
know what to plug into my css stylesheet to get an ordered list to
start at a number I designate. Any suggestions?
You could also set a class to {display: none} in the CSS and include
the obsolete lines in this class. I think this would work. Anyone
know for sure?Huh?
Are you suggesting using ''display: none'' to "hide" the deprecated
attributes ''start="14" type="1"''? Then no, absolutely not, it would just
prevent the OL from displaying altogether.
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
这篇关于使用CSS在有序列表中设置起始编号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!