【问题标题】:rtl switching in joomla doesn't reposition the logojoomla 中的 rtl 切换不会重新定位徽标
【发布时间】:2014-06-03 12:42:21
【问题描述】:

在 joomla 网站中将 RTL 语言添加到英语后,当我切换语言时,徽标仍然是 LTR。正在使用 protostar 模板,如何更改徽标位置以成为 RTL 语言中的 RTL?

【问题讨论】:

    标签: css joomla2.5


    【解决方案1】:

    尝试例如: HTML:

    <html>
    <body>
         <div class="header">
              <div class="logo <?php echo $this->direction;?>"></div>
         </div>
         <div class="content">
         </div>
         <div class="footer">
         </div>
    </body>
    </html>
    

    CSS 文件:

    .header .logo{
         background: url('logo-ltr.png') no-repeat;
    }
    .header .logo.ltr{
         background: url('logo-ltr.png') no-repeat;
         float: left; //if necessary
    }
    .header .logo.rtr{
         background: url('logo-rtl.png') no-repeat;
         float: right; //if necessary
    }
    

    【讨论】:

    • 感谢您的回答,我已添加 :lang(ar){ background-position:right center;并且它在 IE 中除外
    猜你喜欢
    • 1970-01-01
    • 2011-10-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多