如何在HTML中使用波斯或阿拉伯数字 [英] How to use persian or arabic numbers in HTML

查看:126
本文介绍了如何在HTML中使用波斯或阿拉伯数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在网站上,我想使用波斯/阿拉伯数字.但是当我写数字时,数字以英文格式显示. 我也尝试过此代码:

i'm working on a web site and i want to use persian/arabic numbers. but when i write the number, the numbers shown in english format. also i tried for this code :

<html lang="fa" dir="rtl">

但这对我不起作用.请告诉我一种方法. 它是我的网站: http://follower.siblearn.ir 我想将2.500和5.000更改为波斯/阿拉伯语格式.

but it doesn't works for me. please show me a way. its my web site : http://follower.siblearn.ir i wanna change the 2.500 and 5.000 to the persian/arabic format.

推荐答案

您应使用波斯语或阿拉伯语字体家族,如下所示:

You should use Persian or Arabic font family like this:

body {  font-family: 'B Koodak',tahoma; }

在此之前,请将类似的代码添加到您的html标头中:

before that, add some code like this to your html header:

<link href='http://www.fontonline.ir/css/BKoodakBold.css' rel='stylesheet' type='text/css'>

请记住,您可以使用在线或托管文件中喜欢的字体.

remember you can use your favorite fonts from online or hosted files.

{font-family:'B Koodak'; }

{ font-family: 'B Koodak'; }

在您要申请数字的每个标签或类上

on every tag or class you want to apply for numbers

这篇关于如何在HTML中使用波斯或阿拉伯数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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