skip to Main Content

I have a problem with my android phone,

when I copy my simple project that includes just a html and css file to my android phone and when I open it, I see the css file doesn’t work!!! it works perfectly in computer but in androind colors, font size, font familes and other styles. I don’t mean resposive. I mean that I think the link property doesn’t work

I tried many codes

  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>css</title>
<link href="./app.css" />
  </head>

2

Answers


  1. You should tell the browser what the external resource is by adding attributes to the <link rel="stylesheet" type="text/css" href="app.css" />

    Login or Signup to reply.
  2. Try it like this:

    <link rel="stylesheet" href="https://yoursite.com/app.css" type="text/css" />
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search