双向浏览器标题(标题中的希伯来语和英语字符)
我有一个 aspx 页面,其标题中同时包含希伯来语和英语字符,并且单词的顺序混乱。
有没有办法设计标题的样式,这样文字就不会混乱,或者这是操作系统问题?
这就是标题应该说的内容:
这就是标题实际的样子:
I have a aspx page whose title has both Hebrew and English characters in it and the order of the words gets messed up.
Is there a way to style the title so the words don't get messed up, or is it an OS problem?
This is what the title should say:
This is what the title actually looks like:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
@jleedev 已经有了似乎是正确的答案。以下是一些相关背景信息:
用阿拉伯语创建 HTML 页面,希伯来语和其他从右到左的文字
@jleedev already has what seems to be the right answer. Here is a bit of background information on it:
Creating HTML Pages in Arabic, Hebrew and Other Right-to-left Scripts
尝试使用 Unicode 方向嵌入代码:
结果看起来像 הוספת קובץ JS עורך йשן - Mozilla Firefox,其标记如下:(
您应该能够使用</code> 编写标题,但我不能无法让它发挥作用。)
Try using the Unicode direction embedding codes:
The result looks like הוספת קובץ JS עורך ישן - Mozilla Firefox, and it's marked up as follows:
(You ought to be able to write the title with
<title dir="rtl">
, but I couldn't get that to work.)如果你使用utf-8就不会有问题。
将以下内容添加到您的 中并确保保存为 utf-8
if you use utf-8 you shouldn't have a problem.
add the following to your <head> and make sure you are saving as utf-8