Aligning decimal points in HTML

后端 未结 11 1745
渐次进展
渐次进展 2020-11-27 12:52

I have a table containing decimal numbers in one column. I\'m looking to align them in a manner similar to a word processor\'s \"decimal tab\" feature, so that all the poin

11条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-27 13:31

    Another way to format a number would be like this: 35.000. That is, write it out with the full decimal expansion, but write the trailing decimals in invisible ink. That way you don't have to worry about the width of the decimal point.

提交回复
热议问题