gpt4 book ai didi

javascript - 如何在运行时翻转 div css

转载 作者:行者123 更新时间:2023-11-28 03:22:52 25 4
gpt4 key购买 nike

我有两个使用 bootstrap 的 div

<div >
<div class="col-md-6">
this div use the left side of the page

</div>
<div class="col-md-6">
this div use the right side of the page
</div>
</div>

当我使用英语时它工作正常,但我的网站也使用阿拉伯语等多种语言,所以我需要在运行时翻转两个 div。我尝试将其设置为偏移类,但没用!

我该怎么做?

最佳答案

你可以使用 col-md-6 {方向:'rtl'; 至于运行时间,你可以使用 jquery 来设置它,这取决于你所说的运行时间

关于javascript - 如何在运行时翻转 div css,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45127936/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com