我在我的项目中使用 jHtmlArea。我想以“从右到左”方向模式书写。但它只支持从左到右。我该怎么做?
问问题
134 次
1 回答
2
我自己找到了答案。
我将一个 css 文件附加到我的 jHtmlArea。然后在其中设置方向。
$('textarea').htmlarea({
css: "/MyRootFolder/Styles/jHtmlArea/jHtmlArea.Editor.css"
});
jHtmlArea.Editor.css:
body
{
background: #FFF;
color: #000;
margin: 2px;
direction: rtl;
font-family: tahoma;
font-size: 13px;
}
于 2015-12-20T02:07:12.693 回答