最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

css - ELEMENTOR PRO GALLERY - CUSTOMIZE ASPECT RATIO - Stack Overflow

programmeradmin1浏览0评论

since elementor pro doesn't have the choice to set the aspect ratio of the pro gallery to 3/4, i want to add it with a css code i found.

The gallery is the main page of my website.

This is the code:

.e-gallery-image {
    --aspect-ratio-value: 3 / 4
        ;
    
    --aspect-ratio: calc(100% * (1 / (var(--aspect-ratio-value))));
}

The code works, but now the website is loading in a bad way (content jumping i think). The first picture is shown very closely, then it jumps to another weird view, till it finally has loaded the website and shows it well.

Can anyone help me with a code that doesn't influence the loading of the website.

Thank you in advance!

发布评论

评论列表(0)

  1. 暂无评论