简体   繁体   中英

How to make responsive banner in vegas slider

i already add css for responsive banner vegas slider for my portal. The problem is the recommended size for the banner is 1800X600px and it display nicely in 1280X1024 of monitor resolution but the banner will be stretched and the banner look ugly in 1860X1020 of monitor resolution. If i view it via mobile phone, the banner will be squeeze to fit the screen. Below is the css that i add.

.vegas-slide-inner {
    background-size:100% 100% !important;
}

Is there any other way to make the banner fit in any resolution of display?

使用封面而不是给它100%的background-size: cover;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM