保证金,填充,边框,速记值顺序? [英] Margin, padding, border, shorthand values order?

查看:44
本文介绍了保证金,填充,边框,速记值顺序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是CSS的开始学生和边缘的速记订单等。

扬起眉毛。


顺时针顺序是困扰我:


p.margin {margin:[TOP] cm [right] cm [BOTTOM] cm [left] cm}

我认为订单应该be:


p.margin {margin:[TOP] cm [left] cm [right] cm [BOTTOMcm}

作为一个经验丰富的基于代码的排字机,当定义一个段落样式

我们总是采用自上而下的方法并定义上面的空间,然后我们

关注左右缩进,最后是空间

以下。


有人可以解释为什么采用顶级/顺时针顺序?它对我来说不是很有意义。


这可以改变或进一步讨论吗?


Andy Burns

Typographer


-

女士们,先生们,披头士乐队!

- Ed Sullivan(1964)

解决方案

Andy< aj *@comcast.net>写道:

有人可以解释为什么采用顶部/顺时针顺序?它对我没有意义。


习惯它,如果速记让你困惑,请使用详细记数法。

可以改变吗



只是为了满足您的任意印刷惯例,从而打破所有现有编码的




-

Spartanicus


2005年2月19日星期六09:52:36 -0600,Andy< aj *@comcast.net>写道:


[...]

顺时针顺序让我烦恼:

p.margin {margin:[ TOP] cm [右] cm [BOTTOM] cm [left] cm}
我认为顺序应该是:
p.margin {margin:[TOP] cm [left] cm [right] cm [ BOTTOMcm}


你来不及;你本来应该参加讨论,因为你的投入可能会产生

效果。



CSS1写在石头上 (即成为W3推荐)1996年,

实施缓慢开始增长,从那时起顺时针定义为
生效。

As一个经验丰富的基于代码的排字机,在定义段落风格时
我们总是采用自上而下的方法...


嗯,这只是另一种设置方式一个盒子定义,没什么大不了的。

有人可以解释为什么采用顶部/顺时针顺序吗?


我很确定在旧的CSS讨论档案库中存储了一系列推理,但我从未见过它。 br />
仍然因为我知道他们并非都是傻瓜。我想出了CSS1规格,我认为他们有充分的理由做他们的b $ b做了什么。

可以改变吗? ...


否;并非没有说服所有以下内容改变...

微软,

Mozilla组织,

Opera软件,

每个其他CSS浏览器制作者,

每个网页作者已经在www上的页面工作,按照当前的CSS建议工作


还是进一步讨论过?




如果你愿意,可以使用它,它仍然不会改变。


-

Rex


Spartanicus< me@privacy.net>写在

新闻:n0 ******************************** @ news.spart anicus .utvinternet.ie:

Andy< aj *@comcast.net>写道:

有人可以解释为什么采用顶部/顺时针顺序?它对我来说没有意义。



习惯它,如果简写混淆了你,请使用详细的表示法。




没有回答这个问题。

可以改变吗



只是为了满足你的任意印刷惯例,从而打破所有现有的编码?




没有回答这个问题也是。


他们可以添加一个额外的描述符:margina (等)将解析价值T-L-R-B
。因此,css作曲家可以使用他们喜欢的任何版本。没有代码中断,我会很高兴! ;)


我希望当它实施时,我已经能够为简写提案做出贡献了

。像往常一样迟到派对。


问候,


Andy Burns

Typographer


-

女士们,先生们,甲壳虫乐队!

- Ed Sullivan(1964)


I''m a beginning student of CSS and the shorthand order for margins, etc.
raised an eyebrow.

The clockwise order is what bothers me:

p.margin {margin: [TOP]cm [right]cm [BOTTOM]cm [left]cm}
I think the order should be:

p.margin {margin: [TOP]cm [left]cm [right]cm [BOTTOMcm}
As an experienced code-based typesetter, when defining a paragraph style
we always took a top down approach and defined the space above, then we
concerned ourselves with the left and right indents and finally the space
below.

Could someone explain why the top/clockwise order was adopted? It doesn''t
make sense to me.

Could this be changed or discussed further?

Andy Burns
Typographer

--
"Ladies and gentlemen, The Beatles!"
- Ed Sullivan (1964)

解决方案

Andy <aj*@comcast.net> wrote:

Could someone explain why the top/clockwise order was adopted? It doesn''t
make sense to me.
Get used to it, use the verbose notation if the shorthand confuses you.
Could this be changed



Just to satisfy your arbitrary typographic convention, thereby breaking
all existing coding?

--
Spartanicus


On Sat, 19 Feb 2005 09:52:36 -0600, Andy <aj*@comcast.net> wrote:

[...]

The clockwise order is what bothers me:

p.margin {margin: [TOP]cm [right]cm [BOTTOM]cm [left]cm}
I think the order should be:
p.margin {margin: [TOP]cm [left]cm [right]cm [BOTTOMcm}
You are too late; you should have been in the discussions that took
place early to mid 1990''ies for your input to have had a possible
effect.

CSS1 was "written in stone" (i.e. became a W3 recommendation) in 1996,
implementations slowly started to grow and the clockwise definition is
in effect since then.
As an experienced code-based typesetter, when defining a paragraph style
we always took a top down approach...
Well, it''s just another way to set up a box definition, no big deal.
Could someone explain why the top/clockwise order was adopted?
I''m pretty sure that there is a line of reasoning stored somewhere in
the old CSS discussion archives, but I have never seen it.
Still since I know that they were not all "dummies" that came up with
the CSS1 spec I take it that they had a solid reason to do what they
did.
Could this be changed...
No; not without convincing all of the following to change...
Microsoft,
the Mozilla org,
Opera Software,
every other CSS browser producer,
every web author that already have pages on the www that works according
to current CSS recommendations.
or discussed further?



Ad nauseum if you like, it still will not change.

--
Rex


Spartanicus <me@privacy.net> wrote in
news:n0********************************@news.spart anicus.utvinternet.ie:

Andy <aj*@comcast.net> wrote:

Could someone explain why the top/clockwise order was adopted? It
doesn''t make sense to me.



Get used to it, use the verbose notation if the shorthand confuses
you.



That didn''t answer the question.

Could this be changed



Just to satisfy your arbitrary typographic convention, thereby
breaking all existing coding?



That didn''t answer the question either.

They could add an extra descriptors: "margina" (etc.) that would parse
the values T-L-R-B. So css composers could use whichever version they
liked. No code breaks and I''d be happy! ;)

I wish I''d been able to contribute to the shorthand proposal back when it
was being implemented. A little late to the party as usual.

Regards,

Andy Burns
Typographer

--
"Ladies and gentlemen, The Beatles!"
- Ed Sullivan (1964)


这篇关于保证金,填充,边框,速记值顺序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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