I run with different images on mobile and desk

Asked

Viewed 62 times

0

Good morning, everyone,

I’m developing a responsive site, in it I will use a standard bootstrap carousel, however, will be different images when the carousel is on mobile and desk.

Does anyone have any idea how I can do that without using two elements?

Personal vlw!

  • Using media queries? Separating mobile from desktop? Take a look here: http://answall.com/tour. Welcome

  • Why not use two elements ? I think it would be even better rs. You can use JS to detect whether it is mobile or desktop and launch the images to the element.

1 answer

0


You couldn’t use it

require_once 'Mobile_Detect.php';
$detect = new Mobile_Detect;

// Qualquer dispositivo móvel (telefones ou tablets).
if ( $detect->isMobile() ) {
   ....images mobiles
}else{
   ....images desk
}

the Mobile_detect.php file on the website http://mobiledetect.net/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.