Home > Article > Web Front-end > Use html for browser judgment, browser condition annotation_html/css_WEB-ITnose
The following is some information about using HTML for browser judgment that I collected while writing today:
The basic format of conditional comments :
<!--[if expression]>注释内容<![endif]--> 或者<![if expression]>注释内容<![endif]>
Basically all conditional comments are based on the above content
Common values of expression:
IE version
gt IE version Greater thangte IE version Greater than or equal to
!IE Non-IE browsers