html - 我在 Bootstrap 主题的特殊部分遇到 RTL 问题

标签 html css

我正在尝试在下面的 URL 中(在其侧边栏区域的底部)RTL“更多过滤器”复选框: http://www.vasterad.com/themes/listeo_latest/listings-list-with-sidebar.html 谁能知道我该怎么做?

我尝试插入这些属性:

 Direction: rtl;

 Float: right;

甚至

 text-align: right;

它们都不能 RTL 方形复选框,只有文本标签 RTL。 ::before 选择器插入的方形复选框。我也尝试用::after 选择器替换它。 不工作了。 它知道这可能很简单,但实际上我无法意识到知道。 谁能帮我? 谢谢

最佳答案

将文件 style.css 中 .checkboxes label:before 的属性 left: 0; 更改为 right: 0; :

.checkboxes label:before {
    content: "";
    display: inline-block;
    width: 19px;
    height: 19px;
    margin-right: 10px;
    position: absolute;
    right: 0; //***************change here************//
    top: 3px;
    background-color: #fff;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    transition: all .25s;
    font-family: fontawesome;
    font-size: 12px;
    color: #fff;
    text-align: center;
    line-height: 15px;
}

关于html - 我在 Bootstrap 主题的特殊部分遇到 RTL 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54091481/

相关文章:

javascript - 根据变量改变 React 中组件的顺序?

html - 使用 css 添加禁用增量的数字类型输入字段不起作用

javascript - HTML5 : preload page and then redirect to it

javascript - 下载由 Javascript 生成的动态创建的 CSS 文件

css - 结合 jQuery Cycle (Lite) 和流式布局

html - 盒子阴影效果可以应用于 div 的左右两侧吗?

javascript - 加载整个页面后加载 Google Ads

html - 防止图标的 SVG 背景出血?

不遵守 CSS Flexbox 最大宽度

css - 将我的 CSS 测量单位从绝对转换为相对