Html方向属性不起作用 [英] Html direction attribute is not working

查看:170
本文介绍了Html方向属性不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网页中,我将语言环境设置为阿拉伯语,并希望通过使用< html dir =rtl> 。但它没有显示从右到左的网页的所有分区,有些正在反映,有些则没有。

In my webpage I set the locale to arabic and want to change the direction of the content display from right to left by using <html dir = "rtl">. But it is not displaying all the divisions of webpage from right to left some are getting reflected and some are not.

是否有任何建议将所有内容显示从右侧在网页左侧?

Is there any suggestion to change all the content display from right to left of a web page?

推荐答案

这是个老问题,但我希望它能帮助别人,
如果方向:rtl; 不起作用,则尝试在您的css中覆盖bidi

This is old question, but i hope it'll help someone, If direction:rtl; didn't work then try to override bidi in your css

unicode-bidi: bidi-override !important;
direction: unset !important;
text-align:right;

这篇关于Html方向属性不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆