文本:从右到左 (CSS)

发布于 2024-08-27 12:59:33 字数 112 浏览 6 评论 0原文

是否有 CSS 代码可以将此文本更改

This is it

为此文本

ti si sihT

Is there a CSS code that changes this text

This is it

to this one

ti si sihT

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

各空 2024-09-03 12:59:33

尝试这个

.cssClassName { direction:rtl; unicode-bidi:bidi-override; }

编辑:
将此类应用于段落标签,您应该会得到您想要的结果。

Try this

.cssClassName { direction:rtl; unicode-bidi:bidi-override; }

EDIT:
apply this class to a paragraph tag and you should get the results your looking for.

凯凯我们等你回来 2024-09-03 12:59:33

是的,有:

.reversed {
   direction: rtl; unicode-bidi: bidi-override;
}

Yes, there is:

.reversed {
   direction: rtl; unicode-bidi: bidi-override;
}
神爱温柔 2024-09-03 12:59:33

这不是从右到左,而是镜像。

CSS:

direction: rtl;
unicode-bidi:bidi-override;

Thats not right to left, thats mirroring.

CSS:

direction: rtl;
unicode-bidi:bidi-override;
自演自醉 2024-09-03 12:59:33

@victor-jalencas 给出了答案。

这里有些人开始谈论的另一件事是翻转,它是通过用 Unicode 翻转等价物替换普通文本来完成的。

示例可以在这里找到:http://www.revfad.com/flip.html

@victor-jalencas gave the answer.

The other thing some people here started talking about is flipping and it is done with replacing the normal text with Unicode flipped equivalents.

Example can be found here: http://www.revfad.com/flip.html

靖瑶 2024-09-03 12:59:33

您可以使用 CSS 过滤器 filp (仅在 IE 中支持)

<div style="width: 300; height: 50; font-size: 30pt; font-family: Arial Black; color: red; Filter: FlipH">CSS Tutorials</div>

You can use CSS filter filp (Only supported in IE)

<div style="width: 300; height: 50; font-size: 30pt; font-family: Arial Black; color: red; Filter: FlipH">CSS Tutorials</div>
有木有妳兜一样 2024-09-03 12:59:33

试试这个,IE 似乎确实有点难以顺利地渲染字体,但它在所有浏览器中都具有魅力。我在 Win 7 上测试了 IE 7-9、Ff、Chrome 和 Safari

.flipText {
display: block;
-moz-transform: scaleX(-1); /* Gecko */
    -o-transform: scaleX(-1); /* Opera */
    -webkit-transform: scaleX(-1); /* webkit */
    transform: scaleX(-1); /* standard */
    filter: FlipH; /* IE 6/7/8 */
-ms-filter: "FlipH";
}

Try this, IE does seem to have a bit of a hard time rendering fonts smoothly, but it works like a charm in all browsers. I have tested IE 7-9, Ff, Chrome and Safari on Win 7

.flipText {
display: block;
-moz-transform: scaleX(-1); /* Gecko */
    -o-transform: scaleX(-1); /* Opera */
    -webkit-transform: scaleX(-1); /* webkit */
    transform: scaleX(-1); /* standard */
    filter: FlipH; /* IE 6/7/8 */
-ms-filter: "FlipH";
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文