我正在使用 opencart 我安装了一个自定义页脚,因为它可以预览我的 Facebook 页面等等。问题是我使用的是阿拉伯语,所以它是一种 RTL 格式,所以我在标题中的图标是不正确的在英语中,它应该在文本的右侧,但它不是......
我试过 background-position: 100% 0;
但是它把图片放在了文本下面......
有什么想法
我的网站是:www.egy-smoke.com
最佳答案
更新您的自定义样式表,这样:
footer #custom-footer > div > div > div h3.facebook {
padding-left: 34px;
background: url(../img/icon-facebook.png) 0px 9px no-repeat;
}
变成这样:
footer #custom-footer > div > div > div h3.facebook {
padding-right: 34px;
background: url(../img/icon-facebook.png) 100% 9px no-repeat;
}
对其他自定义元素重复上述操作,例如“اتصل بنا”和“احنا مين”
关于html - 页脚中 rtl 语言的图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22898718/