与char和其他东西对齐 [英] Alignment to char and other things

查看:66
本文介绍了与char和其他东西对齐的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[我的第一篇来自Google网上论坛的帖子。希望它是可读的。]


我正在使用一些半高级表格,其中包含大量小数

数字,我可以'不能正常工作。

http://www.algonet.se/~gustafl/temp/output_ib.html


我希望数字与小数点对齐。 HTML 4规范说用户

代理不需要支持''char''和''charoff'',所以我想知道

问题是否缺乏支持?如果是这样,可以用另一种方式获得相同的结果吗?


接下来最好将数字对齐,但似乎有

a支持< colgroup>的问题以及。我对吗?最好的

解决方案我找到了一个正确对齐的课程并将其称为

来自每个< td> ;.


另外,有人可以给我一个方法来防止负数在减去之后打破
吗?一个为代码添加最少混乱的解决方案?

用'

''endash''代替减号是否合适?(#x2013;)?


谢谢,


Gustaf

解决方案

Gustaf Liljegren写道:

[我的第一篇来自Google网上论坛的帖子。希望它是可读的。]


看起来很好。

我正在使用一些带有大量小数的半高级表
数字在,我无法调整工作。

http://www.algonet.se/~gustafl/temp/output_ib.html

我希望数字与小数点对齐。 HTML 4规范说用户
代理不需要支持''char''和''charoff'',所以我想知道问题是否缺乏支持?如果是这样,可以用另一种方式实现相同的结果吗?




使用(或至少建议)数字的等宽字体。从小数点对齐数字可以获得很小的好处,除非

每个地方值都排成一行。


-

Mark。


2004年5月24日,Gustaf Liljegren写道:

另外,有人可以给我一个方法来防止负数在减号后打破吗?


看看

< http://www.cs.tut.fi/~jkorpela/html/nobr.html>

< http://www.cs.tut.fi/~jkorpela/dashes.html>

使用
替换减号是否正确? 'endash''(#x2013;)?




No.

- 是一个连字符

- 是减号

- 是一个短划线


首选十六进制引用的十进制字符引用。


- -

热门帖子。

Usenet上最令人恼火的是什么?


Gustaf Liljegren <顾***** @ algonet.se>写在

comp.infosystems。 www.authoring.html:

我希望数字与小数点对齐。 HTML 4规范说用户
代理不需要支持''char''和''charoff'',所以我想知道问题是否缺乏支持?




我担心这就是问题所在。


-

Stan Brown,Oak Road Systems ,美国纽约州科特兰县
http://OakRoadSystems.com/

HTML 4.01规范: http://www.w3。 org / TR / html401 /

验证人: http:/ /validator.w3.org/

CSS 2规范: http://www.w3.org/TR/REC-CSS2/

2.1更改: http://www.w3.org/TR/CSS21/changes.html

验证者:< a rel =nofollowhref =http://jigsaw.w3.org/css-validator/\"target =_ blank> http://jigsaw.w3.org/css-validator/


[My first post from Google Groups. Hope it''s readable.]

I''m working with some semi-advanced tables with lots of decimal
numbers in, and I can''t get the alignment to work.

http://www.algonet.se/~gustafl/temp/output_ib.html

I want numbers aligned to the decimal point. The HTML 4 spec says User
agents doesn''t need to support ''char'' and ''charoff'', so I wonder if
the problem is lack of support? If so, can the same results be
achieved in another way?

Next best would be aligning the number to right, but there seem to be
a problem with support for <colgroup> aswell. Am I right? Best
solution I found was to have a class for right alignment and call it
from each <td>.

Also, can someone give me a way to prevent negative numbers to break
after the minus? A solution that adds the least clutter to the code?
Would it be right typographically to replace the minus with an
''endash'' (#x2013;)?

Thanks,

Gustaf

解决方案

Gustaf Liljegren wrote:

[My first post from Google Groups. Hope it''s readable.]
Looks fine.
I''m working with some semi-advanced tables with lots of decimal
numbers in, and I can''t get the alignment to work.

http://www.algonet.se/~gustafl/temp/output_ib.html

I want numbers aligned to the decimal point. The HTML 4 spec says User
agents doesn''t need to support ''char'' and ''charoff'', so I wonder if
the problem is lack of support? If so, can the same results be
achieved in another way?



Use (or at least suggest) a monospaced font for the numbers. There''s
little benefit to be achieved from decimal point-aligning numbers unless
each fo the place values line up.

--
Mark.


On 24 May 2004, Gustaf Liljegren wrote:

Also, can someone give me a way to prevent negative numbers to break
after the minus?
Have a look at
<http://www.cs.tut.fi/~jkorpela/html/nobr.html>
<http://www.cs.tut.fi/~jkorpela/dashes.html>
Would it be right typographically to replace the minus with an
''endash'' (#x2013;)?



No.
- is a hyphen
− is a minus sign
– is an en-dash

Prefer decimal character references to hexadecimal references.

--
Top-posting.
What''s the most irritating thing on Usenet?


"Gustaf Liljegren" <gu*****@algonet.se> wrote in
comp.infosystems.www.authoring.html:

I want numbers aligned to the decimal point. The HTML 4 spec says User
agents doesn''t need to support ''char'' and ''charoff'', so I wonder if
the problem is lack of support?



I''m afraid that is exactly the problem.

--
Stan Brown, Oak Road Systems, Cortland County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2 spec: http://www.w3.org/TR/REC-CSS2/
2.1 changes: http://www.w3.org/TR/CSS21/changes.html
validator: http://jigsaw.w3.org/css-validator/


这篇关于与char和其他东西对齐的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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