CSS设置文本方向的属性是什么,用法是啥样
发布时间:2023-09-16 14:33:39 所属栏目:语言 来源:
导读:在css中,可以利用direction属性来设置文本的方向,direction属性的作用就是规定文本的方向。
示例如下:
<html>
<head>
<style type="text/css">
p.one{
direction: rtl
}
p.two{
示例如下:
<html>
<head>
<style type="text/css">
p.one{
direction: rtl
}
p.two{
在css中,可以利用direction属性来设置文本的方向,direction属性的作用就是规定文本的方向。 示例如下: <html> <head> <style type="text/css"> p.one{ direction: rtl } p.two{ direction: ltr } </style> </head> <body> <p class="one">12 34 56</p> <p class="two">12 34 56</p> </body> </html> (编辑:聊城站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
推荐文章
站长推荐