提议增加CSS 3

扫码查看
本文介绍了提议增加CSS 3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 评论这三个相关的,提议的CSS 3添加? 1.添加''text-transform:time'',它将以格式转换文本 小时:分钟:秒(24小时制)到显示 时间的本地格式,例如< span style =" text-transform:time;"> 23:15< / span>可能会在晚上11:15或23:15呈现 。 2.添加''text-transform:date'',它将改变文本格式 年 - 月 - 日以本地格式显示日期,例如 < span style =" text-transform:date;" > 2004-07-23< /跨度>可能会呈现 07/23 / 04,23 / 07/04,07/23 / 2004,23 / 07/2004,或者其他什么。 3.添加''text-transform:number'',它将根据 本地格式转换一个数字,用于显示数字,例如< span style =" text-transform:number;"> 123,456,789.01< / span>可能会被呈现为 123,456,789.01,123 456 789,01,123.456.789,01,或者其他什么。 目标当然是能够以用户最熟悉的格式呈现 内容中的时间,日期和数字,例如进入 Windows中的格式由控制面板指定,区域 设置。Comments re these three related, proposed CSS 3 additions?1. Add ''text-transform:time'', which would transform text in the formathours:minutes:seconds (24 hour clock) to the local format for displaying thetime, e.g. <span style="text-transform:time;">23:15</span> might be renderedas 11:15PM or 23:15.2. Add ''text-transform:date'', which would transform text in the formatyear-month-day to text in the local format for displaying the date, e.g.<span style="text-transform:date;">2004-07-23</span> might be rendered07/23/04, 23/07/04, 07/23/2004, 23/07/2004, or whatever.3. Add ''text-transform:number'', which would transform a number per thelocal format for displaying a number, e.g. <spanstyle="text-transform:number;">123,456,789.01</span> might be rendered as123,456,789.01, 123 456 789,01, 123.456.789,01, or whatever.The objective, of course, is to be able to have times, dates, and numbers incontent rendered in formats with which the user is most familiar, e.g. intothe formats which in Windows are specified by Control Panel, RegionalSettings.推荐答案 为什么使用本地格式? 如果我正在荷兰阅读英文网页,我希望这需要1000万美元,而不是100万美元。如果本地格式为 ,则1000,000表示1000和千分之五。 (这是英文单词吗?) 相同的日期,虽然可能不那么成问题。 我的当地(荷兰)日期格式是日 - 月 - 年。 但是当我''在阅读美国页面时,我预计7-3-1999到 意味着7月3日,而不是3月7日。 至于时间,我不知道本地格式会是什么意思 的意思。我在我的电脑上安装的格式,或者国内最常见的 ?我们使用下午3点和15点。我更喜欢24小时b $ b小时系统,但不是每个人都一样。 - Els http://locusmeus.com/ Sonhos vem。 Sonhos v?o。 Orestoébritfeito。 - Renato Russo -Why the local format?If I''m reading an English webpage in Holland, I expect1000,000 to mean 1 million. If the local format would beapplied, 1000,000 means 1000 and zero thousandths.(is that an English word?)Same goes for the date, although maybe less problematic.My local (Dutch) format for date is day-month-year.But when I''m reading an American page, I expect 7-3-1999 tomean the 3rd of July, not the 7th of March.As for the time, I don''t know what the local format wouldmean. The format I installed on my pc, or what is most commonin the country? We use both 3pm and 15.00. I prefer the 24hour system, but not everybody is the same.--Els http://locusmeus.com/Sonhos vem. Sonhos v?o. O resto é imperfeito.- Renato Russo - 为什么是本地格式? 如果我我正在读荷兰的英文网页,我希望1000,000意味着100万。如果应用本地格式,则1000,000表示1000和千分之一。(这是一个英文单词吗?) 同样适用于日期,尽管可能更少有问题。我的本地(荷兰语)日期格式是日 - 月 - 年。但是当我正在阅读美国页面时,我希望7-3-1999表示意味着7月3日,而不是3月7日。 至于时间,我不知道本地格式是什么意思。我在电脑上安装的格式,或者国内最常见的格式?我们使用下午3点和15点。我更喜欢24小时系统,但不是每个人都一样。 Why the local format? If I''m reading an English webpage in Holland, I expect 1000,000 to mean 1 million. If the local format would be applied, 1000,000 means 1000 and zero thousandths. (is that an English word?) Same goes for the date, although maybe less problematic. My local (Dutch) format for date is day-month-year. But when I''m reading an American page, I expect 7-3-1999 to mean the 3rd of July, not the 7th of March. As for the time, I don''t know what the local format would mean. The format I installed on my pc, or what is most common in the country? We use both 3pm and 15.00. I prefer the 24 hour system, but not everybody is the same. 当然,如何确定本地格式将取决于O / S 。 使用Windows我相信默认格式由您的选择决定 键盘(例如Windows支持荷兰语/荷兰语和荷兰语/比利时语)但 使用控制面板/区域设置,您可以选择您个人喜欢的格式。事实上,我已经为我的电脑做了这个,通过指定年/月/日的首选日期格式,即使它不是我国家的标准 表示法。 当我说''本地格式''时,我的意思是你的电脑'的默认格式为 由你定制。所以,如果您更喜欢24小时制,那就是您要看到的价格。 你说当你去美国网站时,你会期待查看根据美国公约格式化的信息 。据推测,这意味着当你去加拿大的网站时,你会希望根据加拿大的惯例看到格式化的信息 :但是要知道这些约定是什么/> 所有国家/地区? (提示:加拿大使用月/日/年和日/月/年。) 我的建议将使设计师能够使用我建议的CSS3添加到 确保日期,时间和数字的格式为您首选的 格式。How your local formats are determined will, of course, be O/S dependent.With Windows I believe that the default format is determined by your choiceof keyboard (e.g. Windows supports Dutch/Netherlands and Dutch/Belgium) butwith Control Panel / Regional Settings you can choose the format youpersonally prefer. Indeed, I have done this for my PC, by specifying apreferred date format of year/month/day even though that it not the standardnotation for my country.When I said ''local format'' above, I mean your PC''s default format ascustomized by you. So if you prefer a 24-hour clock, that is what you wouldsee.You say that when you go to a US site, you expect to see informationformatted according to the US conventions. Presumably this means that whenyou go to a Canadian site, your would expect to see information formattedaccording to Canadian conventions: but do know what the conventions are forall countries? (Hint: Canada uses both month/day/year and day/month/year.)My proposal would enable the designer to use my proposed CSS3 additions toensure that dates, times, and numbers are formatted in YOUR preferredformat. 当然,如何确定本地格式将取决于O / S 。使用Windows我相信默认的格式取决于您选择的键盘(例如,Windows支持荷兰语/荷兰语和荷兰语/比利时语),但是使用控制面板/区域设置可以选择您个人喜欢的格式。事实上,我已经为我的电脑做了这个,通过指定年/月/日的首选日期格式,即使它不是我国家的标准表示法。 当我说''本地格式''时,我的意思是你自己定制的PC默认格式。所以,如果您更喜欢24小时的时钟,那就是您所看到的。 您说当您访问美国网站时,您希望看到信息格式化根据美国的惯例。 How your local formats are determined will, of course, be O/S dependent. With Windows I believe that the default format is determined by your choice of keyboard (e.g. Windows supports Dutch/Netherlands and Dutch/Belgium) but with Control Panel / Regional Settings you can choose the format you personally prefer. Indeed, I have done this for my PC, by specifying a preferred date format of year/month/day even though that it not the standard notation for my country. When I said ''local format'' above, I mean your PC''s default format as customized by you. So if you prefer a 24-hour clock, that is what you would see. You say that when you go to a US site, you expect to see information formatted according to the US conventions. 是的。 大概这意味着当你去加拿大的网站时,你的意愿期望看到根据加拿大公约格式化的信息:但是要知道所有国家/地区的惯例是什么? 我不是。但就日期而言,这就是为什么我将2004年3月30日放在我网站上的b / b 的原因,任何人都无法误解这一点。 (提示:加拿大使用月/日/年和日/月/年。) 不是每个人都会使用CSS文本转换属性, 这意味着我仍然需要查看来源,看看是否b / b / 3月3日是3月7日还是7月3日。我更愿意能够识别啊,另一个加拿大网站,所以这意味着7月7日 而不是啊,另一个Candian网站,让''如果它是加拿大格式或我自己的电脑的格式,请查看来源 。 我的建议将使设计师能够使用我建议的CSS3添加,以确保日期,次数和数字格式化为您的首选格式。Yes. Presumably this means that when you go to a Canadian site, your would expect to see information formatted according to Canadian conventions: but do know what the conventions are for all countries?I don''t. But as for the date, that''s why I put 30-apr-2004 onmy site, there is no way anybody can misunderstand that. (Hint: Canada uses both month/day/year and day/month/year.)Not everybody will use the CSS text-transform properties,which means I would still have to look in the source to see if7/3/2004 means 7 March or 3 July. I prefer to be able torecognise "Ah, another Canadian site, so it means July 7"instead of "Ah, another Candian site, let''s look in the sourceif it''s the Canadian format or my own PC''s format". My proposal would enable the designer to use my proposed CSS3 additions to ensure that dates, times, and numbers are formatted in YOUR preferred format. 我的操作系统处于美国键盘模式。使用 数字的本地格式,荷兰网站上的数字将为a $:1000,000。 荷兰语上的任何荷兰人网站预计1000.000。 - Els http://locusmeus.com/ Sonhos vem。 Sonhos v?o。 Orestoébritfeito。 - Renato Russo - 现在播放:Daryl Hall和John Oates - Rich GirlMy OS is in American keyboard mode. With the local format onnumbers, numbers on a Dutch site would bea million: 1000,000.Any Dutch person on a Dutch site expects 1000.000.--Els http://locusmeus.com/Sonhos vem. Sonhos v?o. O resto é imperfeito.- Renato Russo -Now playing: Daryl Hall and John Oates - Rich Girl 这篇关于提议增加CSS 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
05-28 01:36
查看更多