Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html IE和非英语数字_Html_Css_Internet Explorer_Localization - Fatal编程技术网

Html IE和非英语数字

Html IE和非英语数字,html,css,internet-explorer,localization,Html,Css,Internet Explorer,Localization,我使用的字体中有非英语数字,如:۰,۱,۳,۴,۶,۷,۸,۹, 我对Firefox、chrome和opera没有问题,但是IE 我在下面添加了css body,input { /*The B Roya is the font with persian numbers and is loaded correctly*/ font-family: 'B Roya', Tahoma, Arial; font-size: 18px; } 对于所有章程和编号,字体应用正确。但是对于输

我使用的字体中有非英语数字,如:
۰,۱,۳,۴,۶,۷,۸,۹,

我对Firefox、chrome和opera没有问题,但是IE

我在下面添加了css

body,input {
   /*The B Roya is the font with persian numbers and is loaded correctly*/
   font-family: 'B Roya', Tahoma, Arial;
   font-size: 18px;
}
对于所有章程和编号,字体应用正确。但是对于输入,字体应用于字符而不是数字,数字显示为英文

我发现将
direction:rtl
应用于输入将强制IE在Persain中显示数字!!但是数字会放在左边

为了纠正这一点,我添加了
text align:left
现在数字正确显示在正确的位置,但当您将光标放在输入框中,并点击左箭头时,插入符号将向右移动,反之亦然

有关完整的故事,请访问:


任何意见

不幸的是,它似乎是IE中的一个bug,我找不到任何方法来修复它


有趣的是,您在office工具上也看到了这种行为

也许可以尝试使用内容可编辑段落来处理这种字体@single31问题在于输入标记@Alireza Fattahi-您是否尝试过可能的解决方案?@PaulTomkiel不幸的是,IE中似乎有一个bug:(@Alireza Fattahi-所以您可能应该用以下信息回答您自己的问题:)