CSS and JS do not render on mobile devices

Asked

Viewed 60 times

0

My Rels links don’t open on mobile devices like js css and images someone knows what might be going on?

<link rel="stylesheet" href="<?php echo BASE_CSS_SITE; ?>/bootstrap.min.css"/> 
<link rel="stylesheet" href="<?php echo BASE_CSS_SITE; ?>/index.css"/> 
<link rel="stylesheet" href="<?php echo BASE_CSS_SITE; ?>/jquery.slides.css"/> 
  • What do you mean, crazy? Put your code in so we can see.

  • type on the computer it becomes responsive loads the styles and images, but if I access from a mobile device it breaks the js and images styles

  • Put the code between the tags head.

  • <link rel="stylesheet" href="<? php echo BASE_CSS_SITE; ? >/bootstrap.min.css"/> <link rel="stylesheet" href="<? php echo BASE_CSS_SITE; ? >/index.css"/> <link rel="stylesheet" href="<? php echo BASE_CSS_SITE; ? >/jquery.slides.css"/>

1 answer

0

<link rel="stylesheet" href="<?php echo BASE_CSS_SITE; ?>/bootstrap.min.css" media="all"/> 
<link rel="stylesheet" href="<?php echo BASE_CSS_SITE; ?>/index.css" media="all"/> 
<link rel="stylesheet" href="<?php echo BASE_CSS_SITE; ?>/jquery.slides.css" media="all"/> 

Place media="all" in all of them as I did above. And what is in this predefined variable BASE_CSS_SITE ?

  • the site url without parameters

  • media is no use, because css and images are not rendering

  • Is there an error in the Inspect Element? Your website is in the air ?

  • not local, because on a remote server it works perfectly!

Browser other questions tagged

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