Is there any tag that makes internet explorer work like other browsers?

0

Is there any tag that makes internet explorer work like other browsers? Like the grid display and stuff.

    
asked by anonymous 11.06.2018 / 13:14

1 answer

4

A specific tag does not exist as far as I know. But there are ways to get around this.

An example is the use of the @supports tag, with it you can fallback if the browser does not support the Grid. as in the Example below. Mozilla Documentation Link

@supports (display: grid) {
  div {
    display: grid;
  }
}
@supports not (display: grid) {
  div {
    float: right;
  }
}

Another way is to use Modernizr for example link with it you can create a "pack" of rules that will enable CSS according to the version of the user's browser.

Here is a basic example

  if (Modernizr.NovaFeature) {
    carregaNovaFeature();
  } else {
    carregaCssAntigo();
  }

Excluding this I would say it would be a good practice to include this tag in%% of the page

<meta http-equiv="X-UA-Compatible" content="IE=edge">

She tells older versions of IE that they should behave like Edge. You can read more about this in this question What is the function of the X-UA-Compatible meta tag within HTML

NOTE: But none of this guarantees that you will be able to make Grid run on versions of IE that do not support Grid for example!

    
11.06.2018 / 13:26