在aspx中从右向左写入字符
大家好,我正在用 aspx 编写一个网络应用程序,我的网站语言是希伯来语(从右到左的字符),是否需要插入特殊代码才能执行此操作?
Hello everyone I am writing a web app in aspx, My site language is Hebrew (characters from right to left), Is there a special code I need to insert to do so?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用 CSS 方向属性来实现此目的。
这是一个示例: http://www.w3schools.com/cssref/tryit.asp ?filename=trycss_text_direction
You can use the CSS direction property for this.
Here's an example: http://www.w3schools.com/cssref/tryit.asp?filename=trycss_text_direction
Panel 控件有一个方向当您希望将所有内容保留在 ASP.NET 本身中时,您可以使用该属性。另一种更好的选择是 CSS,因为它将布局与渲染的 html 分开:
有关更多信息,请查看 文档。
The Panel control has a Direction property which you could use for this when you want to keep it all in ASP.NET itself. Another alternative, better one as it separates layout from the rendered out html is CSS:
For more information please look at the documentation.
您可以向正文添加
dir="rtl"
属性。请参阅 w3 上的 dir 属性。
You can add to the body a
dir="rtl"
attribute.See the dir attribute on w3.