css { 方向:rtl } 的问题
我在这里做了一个例子: http://jsfiddle.net/6CRc7/2/ 我正在尝试制作来自另一边的计时器。但方向:rtl; dir="rtl" 也不起作用。
I made example here: http://jsfiddle.net/6CRc7/2/ I am trying to make timer from other side. But direction: rtl; doesnt work dir="rtl" also.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
.countdown_section
中的float
控制字段的顺序,因此如果您将其值更改为right
,您就会得到它如 ss:mmm:hh:dd,但请记住,虽然 RTL 文本是从右到左书写的,但数字是从左到右书写的,正如您对常规拉丁内容所期望的那样。The
float
in.countdown_section
is what controlling the order of the fields, so if you'll change it value toright
you'd get it as ss:mmm:hh:dd, but keep in mind that while RTL text is written from right to left, numbers, are written from left to right as you'd expect from regular latin content.我认为可能对方向的目的有些困惑:rtl,据我所知,这仅适用于 div 中的文本,用于显示从右到左阅读的阿拉伯语等语言,我认为您只是想安排您的span 标签以相反的顺序显示秒、分钟、小时?或者我误解了你的问题?
请参阅此处的基本示例... http://www.w3.org/ TR/CSS2/visuren.html#direction
I think there maybe some confusion about the purpose of direction: rtl, as I am aware this only applies to text in a div, used to display languages such as arabic which read from right to left, I think you are just trying to arrange your span tags in reverse order so it displays seconds, mins, hours? Or have i misinterpreted your question?
See here for a basic example... http://www.w3.org/TR/CSS2/visuren.html#direction