css - dir rtl 不会覆盖

标签 css

我有自定义菜单的背景图片 在英文版中它工作正常(这应该是顶层所以我做了position:relative)

 #custommenu {
background-image: url([[pix:theme|header]])  ;
position:relative;
left:-18px;
top:-8px;
background-repeat: no-repeat;
width: 997px;
height: 57px;
padding: 0;}

在rtl.css中 我无法将图像向右移动

.dir-rtl#custommenu {
 float:right;
 right:-34px;

最佳答案

你好我应该删除 float:right;

像这样

.dir-rtl#custommenu {
 right:-34px;
}

关于css - dir rtl 不会覆盖,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11306607/

相关文章:

css - Webkit 中的显示问题

html - 使用 Bootstrap 移动布局进行简单的列和行重新排序?

带点的 jquery 画廊轮播

jquery 选择与其他 ui 元素重叠

jquery - 为什么 JQuery height() 函数返回零?

jquery - 2 切换功能合二为一

javascript - 如何将右键单击上下文菜单绑定(bind)到右键单击 jQuery

html - 为什么 div 在窗口缩小时会乱七八糟?

css - 在带有 sass、css 和语义 ui 的 nextjs 中使用谷歌字体使用react

javascript - 如何防止 CSS 背景图像在显示时移动?