我正在编写简单的web应用程序,并向我展示了以下内容:

该形状使用respone.write,所有东西都可以,但是我希望将respone.write设置为从右到左,我想要这样:

我该怎么解决?谢谢。
发布于 2015-08-17 07:19:49
有几种方法可以做到这一点,但不建议使用Response.Write()向页面添加内容。
相反,应该更好地使用HTML控件或服务器控件。
在网页表格中:
<div runat="server" id="contentHolder" style="text-align:right;"></div>在后面的代码中:
contentHolder.innerHTML = "your content";另一种方式是这样编写内容:
Response.Write("<div style=\"text-align:right;\">سلام</div>");发布于 2015-08-17 06:57:40
direction.asp
将文本元素分类为:
#rtl {
text-direction: rtl;
}<!--You can also declare arabic as lang, and right to left as dir in the opening html element if you wish to have for full documents. -->
<html dir="rtl" lang="ar">
<div id="ltr"> I'm a line written left to right using standard CSS values.</div>
<div id="rtl"> I'm a line written right to left using standard CSS values.</div>
<!-- There are likely JS files to reverse the letters if necessary as well-->
额外的好资源:(http://www.w3.org/International/questions/qa-html-dir)
https://stackoverflow.com/questions/32044267
复制相似问题