代码之家  ›  专栏  ›  技术社区  ›  Cristin Meravi

odoo12:为不同的屏幕大小设置不同的图像

  •  0
  • Cristin Meravi  · 技术社区  · 6 年前

    我是新开发的奥多12和想知道如何设置不同的图像移动和非移动设备。

    在odoo10(上一版本)中,我可以使用类visible md、visible lg、visible sm和visible xs来控制这一点。但这已经被否决了,我该如何在奥多奥12呢?

    1 回复  |  直到 6 年前
        1
  •  0
  •   Alpesh Valaki    6 年前

    Odoo 12使用引导4。

    因此,使用下面的类,使您的网页响应。

    Bootstrap 4网格系统有五个类:

    .col- (extra small devices - screen width less than 576px)
    .col-sm- (small devices - screen width equal to or greater than 576px)
    .col-md- (medium devices - screen width equal to or greater than 768px)
    .col-lg- (large devices - screen width equal to or greater than 992px)
    .col-xl- (xlarge devices - screen width equal to or greater than 1200px)