Home  >  Article  >  Web Front-end  >  How to choose which browser kernel to use for html web page rendering

How to choose which browser kernel to use for html web page rendering

青灯夜游
青灯夜游forward
2019-01-05 11:46:0910461browse

How to choose which browser kernel to use for rendering an html web page? This article will introduce to you the method of choosing which browser kernel to use for HTML web page rendering. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you. [Recommended tutorial: HTML video tutorial]

As we all know, domestic browsers are basically dual-kernel (ie (Trident) webkit); and they are basically used by default webkit kernel. Although the IE browser experience is poor, sometimes it is necessary to use the IE kernel to render (such as bank websites).

If you want toswitch the IE kernel method is to add in the header, for example :

<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">
    <meta name="renderer" content="ie-comp|ie-stand">
    <title>使用IE内核</title>
</head>

Under normal circumstances, if it is a dual-core system, it will automatically switch to the IE kernel, while a single-core system will be ignored.

On the contrary, if you want to use webkit kernel, then add

<head>
    <meta charset=>
    <meta name= content=>
    <meta http-equiv= content=>
    <meta name= content=>
    <title>使用webkit内核</title> 
</head>

If mixed Use, let the browser choose , you can add

<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">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <title>自动选择</title>
</head>

The above is the content of this article All content, I hope it will be helpful to everyone's study. For more exciting content, you can pay attention to the relevant tutorial columns of the PHP Chinese website! ! !

The above is the detailed content of How to choose which browser kernel to use for html web page rendering. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete