本文介绍了在 html 文本字段中键入阿拉伯字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的要求是有一个应用程序,它将阿拉伯语数据作为 html 文本字段的输入.我尝试了几种字体,但它们不允许我在 html 文本字段中输入阿拉伯语.任何指针

my requirement is to have an application which takes Arabic data as input in an html text field. i tried a few fonts but they don't let me type Arabic in html text field.any pointers

@font-face {
    font-family: 'Conv_ScheherazadeRegOT';
    src: url('fonts/ScheherazadeRegOT.eot');
    src: local('☺'), url('fonts/ScheherazadeRegOT.woff') format('woff'), url('fonts/ScheherazadeRegOT.ttf') format('truetype'), url('fonts/ScheherazadeRegOT.svg') format('svg');
    font-weight: normal;
    font-style: normal;
}



input
    {
        font-family:'Conv_ScheherazadeRegOT',Sans-Serif;
    }

推荐答案

合适的通用字体,如Arial"、Times New Roman"……在此之前您应该检查页面编码(例如 utf-8).并在您的操作系统上设置非 unicodes 选项以支持阿拉伯语.

The suitable generic fonts like "Arial","Times New Roman".. before that you should check the page encoding (eg. utf-8).. and set the non-unicodes option at your OS to support arabic.

这篇关于在 html 文本字段中键入阿拉伯字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 16:32