CSS的阿拉伯语HTML布局方向 [英] Arabic HTML layout direction with css

查看:575
本文介绍了CSS的阿拉伯语HTML布局方向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要从右到左更改文本方向,我们已知以下CSS代码:

To change the text direction to right to left it is known that we the following CSS code:

direction:rtl; //displays text direction as right to left

css中是否有任何方法可以将页面的总布局方向从右到左反转(包括列表)?

Is there any way in css to invert the total page layout direction to right to left including lists ?

推荐答案

只要文档的整体方向从右到左,就将dir ="rtl"添加到html标记中.这设置了整个文档的基本方向.

Add dir="rtl" to the html tag any time the overall document direction is right-to-left. This sets the base direction for the whole document.

<!DOCTYPE html>
<html dir="rtl" lang="ar">
<head>

这篇关于CSS的阿拉伯语HTML布局方向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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